* luci/libs/uci: register luci_hosts in ucitrack, fix dependencies for luci_ethers...
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 14 Sep 2008 23:57:13 +0000 (23:57 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 14 Sep 2008 23:57:13 +0000 (23:57 +0000)
* luci/contrib/addons: fix luci_ethers and luci_hosts initscripts to always return 0

contrib/package/luci-addons/dist/etc/init.d/luci_ethers
contrib/package/luci-addons/dist/etc/init.d/luci_hosts
libs/uci/root/etc/config/ucitrack

index c3f5604..8cf4672 100644 (file)
@@ -24,8 +24,12 @@ start() {
        config_foreach apply_lease static_lease
        
        test -f /etc/ethers.local && cat /etc/ethers.local >> /var/etc/ethers
        config_foreach apply_lease static_lease
        
        test -f /etc/ethers.local && cat /etc/ethers.local >> /var/etc/ethers
+       
+       return 0
 }
 
 stop() {
        test -f /var/etc/ethers && rm -f /var/etc/ethers
 }
 
 stop() {
        test -f /var/etc/ethers && rm -f /var/etc/ethers
+       
+       return 0
 }
 }
index 42ccff4..d01bfbb 100644 (file)
@@ -23,8 +23,12 @@ start() {
        
        config_load luci_hosts
        config_foreach apply_host host
        
        config_load luci_hosts
        config_foreach apply_host host
+       
+       return 0
 }
 
 stop() {
        test -f /var/etc/hosts && rm -f /var/etc/hosts
 }
 
 stop() {
        test -f /var/etc/hosts && rm -f /var/etc/hosts
+       
+       return 0
 }
 }
index cba783d..0349f81 100644 (file)
@@ -1,47 +1,52 @@
 config network
        option init network
        list affects dhcp
 config network
        option init network
        list affects dhcp
-       
+
 config wireless
        list affects network
 config wireless
        list affects network
-       
+
 config firewall
        option init firewall
        list affects luci-splash
        list affects qos
 config firewall
        option init firewall
        list affects luci-splash
        list affects qos
-       
+
 config olsr
        option init olsrd
 
 config dhcp
        option init dnsmasq
 config olsr
        option init olsrd
 
 config dhcp
        option init dnsmasq
-       
+
 config dropbear
        option init dropbear
 config dropbear
        option init dropbear
-       
+
 config httpd
        option init httpd
 config httpd
        option init httpd
-       
+
 config fstab
        option init fstab
 config fstab
        option init fstab
-       
+
 config qos
        option init qos
 config qos
        option init qos
-       
+
 config system
        option init led
 config system
        option init led
-       
+
+config luci_hosts
+       option init luci_hosts
+       list affects dhcp
+
 config luci_ethers
        option init luci_ethers
 config luci_ethers
        option init luci_ethers
-       
+       list affects dhcp
+
 config luci_splash
        option init luci_splash
 config luci_splash
        option init luci_splash
-       
+
 config upnpd
        option init miniupnpd
 config upnpd
        option init miniupnpd
-       
+
 config ntpclient
        option init ntpclient
 config ntpclient
        option init ntpclient
-       
+
 config samba
 config samba
-       option init samba
\ No newline at end of file
+       option init samba