2 # Setup_splash, takes 1 argument: 1=net
10 config_get network
"$1" network
11 if [ "$network" == "${netrenamed}dhcp" ]; then
12 if [ "$cleanup" == 1 ]; then
13 section_cleanup luci_splash.
$1
15 if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
16 section_rename luci_splash
$1 ${netrenamed}dhcp
21 config_load luci_splash
22 config_foreach handle_splash iface
25 set luci_splash.${netrenamed}dhcp="iface"
26 set luci_splash.${netrenamed}dhcp.network="${net}dhcp"
27 set luci_splash.${netrenamed}dhcp.zone="freifunk"
30 echo " network: ${netrenamed}dhcp"