summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--contrib/package/luci-addons/dist/etc/init.d/luci_ethers3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/package/luci-addons/dist/etc/init.d/luci_ethers b/contrib/package/luci-addons/dist/etc/init.d/luci_ethers
index 661e398db..c3f56042e 100644
--- a/contrib/package/luci-addons/dist/etc/init.d/luci_ethers
+++ b/contrib/package/luci-addons/dist/etc/init.d/luci_ethers
@@ -15,9 +15,10 @@ apply_lease() {
start() {
if [ ! -L /etc/ethers ]; then
test -f /etc/ethers && mv /etc/ethers /etc/ethers.local
- test -d /var/etc || mkdir -p /var/etc
ln -s /var/etc/ethers /etc/ethers
fi
+
+ test -d /var/etc || mkdir -p /var/etc
config_load luci_ethers
config_foreach apply_lease static_lease