contrib/meshwizard: Various fixes and cleanups
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_splash.sh
index f316798c2f1331b6595fda8f71dae77748ccf3d8..1d1e248593b64c37df0cbf6e35591a6a13113427 100755 (executable)
@@ -14,12 +14,8 @@ fi
 handle_splash() {
        config_get network "$1" network
        if [ "$network" == "${netrenamed}dhcp" ]; then
-               if [ "$cleanup" == 1 ]; then
-                       section_cleanup luci_splash.$1
-               else
-                       if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
-                               section_rename luci_splash $1 ${netrenamed}dhcp
-                       fi
+               if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
+                       section_rename luci_splash $1 ${netrenamed}dhcp
                fi
        fi
 }