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."
15 config_get network
"$1" network
16 if [ "$network" == "${netrenamed}dhcp" ]; then
17 if [ "$cleanup" == 1 ]; then
18 section_cleanup luci_splash.
$1
20 if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
21 section_rename luci_splash
$1 ${netrenamed}dhcp
26 config_load luci_splash
27 config_foreach handle_splash iface
30 set luci_splash.${netrenamed}dhcp="iface"
31 set luci_splash.${netrenamed}dhcp.network="${netrenamed}dhcp"
32 set luci_splash.${netrenamed}dhcp.zone="freifunk"
35 uci_commitverbose
"Setup dhcpsplash for ${netrenamed}dhcp" luci_splash
37 /etc
/init.d
/luci_splash
enable