* 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 e0f2470..661e398 100644 (file)
@@ -24,3 +24,7 @@ start() {
        
        test -f /etc/ethers.local && cat /etc/ethers.local >> /var/etc/ethers
 }
        
        test -f /etc/ethers.local && cat /etc/ethers.local >> /var/etc/ethers
 }
+
+stop() {
+       test -f /var/etc/ethers && rm -f /var/etc/ethers
+}
index 30acca4..d85d4b4 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 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 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"
        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"
 config internal languages
        option de "Deutsch"
        option en "English"