2 # Setup_splash, takes 1 argument: 1=net
8 vap=$(uci -q get meshwizard.netconfig.${net}_vap)
10 if [ ! "$has_luci_splash" == TRUE ]; then
11 echo " Luci Splash is not installed, skipping setup of it."
15 set_defaults "luci_splash_" luci_splash.general
16 uci_commitverbose "Setup general splash settings" luci_splash
18 dhcprange=$(uci -q get meshwizard.netconfig.$net\_dhcprange)
20 if [ "$(uci -q get meshwizard.netconfig.$net\_dhcp)" == 1 ] && [ -n "$dhcprange" ]; then
22 config_get network "$1" network
23 if [ "$network" == "${netrenamed}dhcp" ]; then
24 if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
25 section_rename luci_splash $1 ${netrenamed}dhcp
29 config_load luci_splash
30 config_foreach handle_splash iface
32 if [ "$vap" == 1 ]; then
34 set luci_splash.${netrenamed}dhcp="iface"
35 set luci_splash.${netrenamed}dhcp.network="${netrenamed}dhcp"
36 set luci_splash.${netrenamed}dhcp.zone="freifunk"
38 uci_commitverbose "Setup dhcpsplash for ${netrenamed}dhcp" luci_splash
41 set luci_splash.${netrenamed}ahdhcp="iface"
42 set luci_splash.${netrenamed}ahdhcp.network="${netrenamed}ahdhcp"
43 set luci_splash.${netrenamed}ahdhcp.zone="freifunk"
45 uci_commitverbose "Setup dhcpsplash for ${netrenamed}ahdhcp" luci_splash
47 /etc/init.d/luci_splash enable