X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-ffwizard-leipzig%2Fluasrc%2Fmodel%2Fcbi%2Fffwizard.lua;h=a16e282fe79a6e4588c7ab9abecee04d4c878bed;hp=320694767715a14016c239953a0d144b68cf55bd;hb=aae312e759c74c576dad758d6716a87b52121828;hpb=5a2c8db890a210e75abaca3c319b767e95316068 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