2 # Setup_splash, takes 1 argument: 1=net
9 if [ ! "$has_luci_splash" == TRUE ]; then
10 echo " Luci Splash is not installed, skipping setup of it."
14 set_defaults "luci_splash_" luci_splash.general
15 uci_commitverbose "Setup general splash settings" luci_splash
17 dhcprange=$(uci -q get meshwizard.netconfig.$net\_dhcprange)
19 if [ "$(uci -q get meshwizard.netconfig.$net\_dhcp)" == 1 ] && [ -n "$dhcprange" ]; then
21 config_get network "$1" network
22 if [ "$network" == "${netrenamed}dhcp" ]; then
23 if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
24 section_rename luci_splash $1 ${netrenamed}dhcp
28 config_load luci_splash
29 config_foreach handle_splash iface
32 set luci_splash.${netrenamed}dhcp="iface"
33 set luci_splash.${netrenamed}dhcp.network="${netrenamed}dhcp"
34 set luci_splash.${netrenamed}dhcp.zone="freifunk"
37 uci_commitverbose "Setup dhcpsplash for ${netrenamed}dhcp" luci_splash
38 /etc/init.d/luci_splash enable