nodogplash: change section name
[feed/routing.git] / nodogsplash / files / nodogsplash.init
index 1fa0c792d49c2545b122d88818fd8a48b7d28089..a84172195b737d0b512943f277a29ef2259fdc80 100755 (executable)
@@ -152,11 +152,11 @@ generate_uci_config() {
 
   config_get val "$cfg" config
   if [ -n "$val" ] ; then
-    if [ -f "$val" ] ; then
+    if [ -f "$val" ] ; then
       nolog error "Configuration file '$file' doesn't exist"
       return 0
     fi
-    cat $val > CONFIGFILE
+    cat "$val" >> $CONFIGFILE
   fi
 
   config_get val "$cfg" network
@@ -257,7 +257,7 @@ start_service() {
   mkdir -p /tmp/etc/
   config_load nodogsplash
 
-  config_foreach create_instance instance
+  config_foreach create_instance nodogsplash
 }
 
 stop_service() {