* luci: associate luci_ethers reload with luci_ethers uci config
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 15 Jul 2008 23:29:21 +0000 (23:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 15 Jul 2008 23:29:21 +0000 (23:29 +0000)
contrib/package/luci-addons/dist/etc/init.d/luci_ethers
libs/web/root/etc/config/luci

index e0f2470ade60ef1de19e5285c438cdfadc1ca4ba..661e398db5d01b02cf6a2cac8c879c4d611f0bd1 100644 (file)
@@ -24,3 +24,7 @@ start() {
        
        test -f /etc/ethers.local && cat /etc/ethers.local >> /var/etc/ethers
 }
+
+stop() {
+       test -f /var/etc/ethers && rm -f /var/etc/ethers
+}
index 30acca42163579cb97c0d8b00e475075e4e5c531..d85d4b45aacf589f7257dd18d5a9422010988bfd 100644 (file)
@@ -23,14 +23,15 @@ config event uci_oncommit
        option wireless "/etc/init.d/network restart"
        option olsr     "/etc/init.d/olsrd restart"
        option dhcp     "/etc/init.d/dnsmasq restart"
-       option luci_fw  "/etc/init.d/luci_fw restart"
        option dropbear "/etc/init.d/dropbear restart"
        option httpd    "/etc/init.d/httpd restart"
        option fstab    "/etc/init.d/fstab restart"
        option qos      "/etc/init.d/qos restart"
+       option luci_fw  "/etc/init.d/luci_fw restart"
+       option luci_ethers "/etc/init.d/luci_ethers restart; /etc/init.d/dnsmasq restart"
        option luci_splash "/etc/init.d/luci_splash restart"
        option freifunk "/etc/init.d/luci_freifunk restart"
-        
+
 config internal languages
        option de "Deutsch"
        option en "English"