summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-03 22:33:53 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-03 22:33:53 +0000
commit8a1b678504df94745042e74e2df3dcbe764251b1 (patch)
tree2601cb3dc9e95830cac04bbf60ab9f1422d0468d
parent85461e4226f3e5b3828324a3a4b743dbc88812f2 (diff)
* luci/contrib/luci-addons: always create /var/etc in luci_ethers, fixes #113 - thanks KanjiMonster!
-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