X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/2d32a51fd3a4a914dd4940281ddb504ead47506c..e69054f27759ba3fbc10434bc1de175fb676a0e6:/package/base-files/default/etc/functions.sh diff --git a/package/base-files/default/etc/functions.sh b/package/base-files/default/etc/functions.sh index 03fd23807..ce22ed151 100755 --- a/package/base-files/default/etc/functions.sh +++ b/package/base-files/default/etc/functions.sh @@ -39,13 +39,13 @@ reset_cb() { reset_cb config () { - local type="$1" + local cfgtype="$1" local name="$2" _C=$(($_C + 1)) name="${name:-cfg${_C}}" - config_cb "$type" "$name" + config_cb "$cfgtype" "$name" export CONFIG_SECTION="$name" - export CONFIG_${CONFIG_SECTION}_TYPE="$type" + export CONFIG_${CONFIG_SECTION}_TYPE="$cfgtype" } option () { @@ -93,7 +93,7 @@ load_modules() { } include() { - for file in $(ls /lib/$1/*.sh 2>/dev/null); do + for file in $(ls $1/*.sh 2>/dev/null); do . $file done }