aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/functions.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-12-09 15:15:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-12-09 15:15:25 +0000
commit889532d1fd7d2fe969f5ae454e38bf8f1e59bd95 (patch)
tree4c0681e9e6735325824e9059aadb01cf65aae091 /package/base-files/files/etc/functions.sh
parent74cbcc9ee5b4e8db11dfbc91d33abdfaeec4f962 (diff)
downloadupstream-889532d1fd7d2fe969f5ae454e38bf8f1e59bd95.tar.gz
upstream-889532d1fd7d2fe969f5ae454e38bf8f1e59bd95.tar.bz2
upstream-889532d1fd7d2fe969f5ae454e38bf8f1e59bd95.zip
do not start multiple subshells for applying /etc/uci-defaults. use sh -x for hush compatibility
SVN-Revision: 18717
Diffstat (limited to 'package/base-files/files/etc/functions.sh')
-rwxr-xr-xpackage/base-files/files/etc/functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/etc/functions.sh b/package/base-files/files/etc/functions.sh
index a788c4cc4e..61c04953d3 100755
--- a/package/base-files/files/etc/functions.sh
+++ b/package/base-files/files/etc/functions.sh
@@ -263,7 +263,7 @@ jffs2_mark_erase() {
echo -e "\xde\xad\xc0\xde" | mtd -qq write - "$1"
}
-uci_apply_defaults() {(
+uci_apply_defaults() {
cd /etc/uci-defaults || return 0
files="$(ls)"
[ -z "$files" ] && return 0
@@ -272,6 +272,6 @@ uci_apply_defaults() {(
( . "./$(basename $file)" ) && rm -f "$file"
done
uci commit
-)}
+}
[ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh