summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ffwizard-leipzig
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-30 01:31:07 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-30 01:31:07 +0000
commit2de56737c7f8975c90a2d84552f10f1014e1ff9f (patch)
treee82b2a851238d6a9b3b5ce6e19b3cd73aa8b3dcc /applications/luci-ffwizard-leipzig
parent9679bc26bf6b1d0287623ab1685e0a622cf3621e (diff)
applications/luci-ffwizard-leipzig: enable init scripts for olsr and luci_splash if they're selected (required if ff-support was installed as package)
Diffstat (limited to 'applications/luci-ffwizard-leipzig')
-rw-r--r--applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
index 320694767..a16e282fe 100644
--- a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
+++ b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
@@ -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