[imagebuilder] fix arch detection pattern to cope with underscores in board name...
[openwrt.git] / package / base-files / files / etc / functions.sh
index 61c0495..d5ffc13 100755 (executable)
@@ -4,10 +4,10 @@
 
 
 debug () {
-       ${DEBUG:-:}
+       ${DEBUG:-:} "$@"
 }
 mount() {
-       busybox mount
+       busybox mount "$@"
 }
 
 # newline
@@ -97,6 +97,7 @@ list() {
        local len
 
        config_get len "$CONFIG_SECTION" "${varname}_LENGTH" 0
+       [ $len = 0 ] && append CONFIG_LIST_STATE "${CONFIG_SECTION}_${varname}"
        len=$(($len + 1))
        config_set "$CONFIG_SECTION" "${varname}_ITEM$len" "$value"
        config_set "$CONFIG_SECTION" "${varname}_LENGTH" "$len"
This page took 0.021085 seconds and 4 git commands to generate.