applications/luci-ffwizard-leipzig: enable init scripts for olsr and luci_splash...
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 30 May 2009 01:31:07 +0000 (01:31 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 30 May 2009 01:31:07 +0000 (01:31 +0000)
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua

index 320694767715a14016c239953a0d144b68cf55bd..a16e282fe79a6e4588c7ab9abecee04d4c878bed 100644 (file)
@@ -324,6 +324,9 @@ function olsr.write(self, section, value)
                uci:set("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr")
        end)
 
+       -- Make sure that OLSR is enabled
+       sys.exec("/etc/init.d/olsrd enable")
+
        uci:save("olsrd")
        uci:save("dhcp")
 end
@@ -434,6 +437,9 @@ function client.write(self, section, value)
        -- Register splash
        uci:section("luci_splash", "iface", nil, {network=device.."dhcp", zone="freifunk"})
        uci:save("luci_splash")
+       
+       -- Make sure that luci_splash is enabled
+       sys.exec("/etc/init.d/luci_splash enable")
 end
 
 return f