summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-12-09 15:15:25 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-12-09 15:15:25 +0000
commitdaa59b7513eb66b7c184474ea188fda4dd4a4aee (patch)
tree30990af542b6edffbe21b0cf0c42eeabdd0229ee /package/base-files/files/etc/init.d
parent6b2e482b317dd94119a2a8f0b101ebd4c1c07753 (diff)
do not start multiple subshells for applying /etc/uci-defaults. use sh -x for hush compatibility
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18717 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/init.d')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot7
1 files changed, 3 insertions, 4 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index aa9e967787..2ed4c50613 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -35,10 +35,9 @@ system_config() {
[ -x /sbin/klogd ] && klogd ${klogconloglevel:+-c $klogconloglevel}
}
-apply_uci_config() {(
- include /lib/config
- uci_apply_defaults
-)}
+apply_uci_config() {
+ sh -c '. /etc/functions.sh; include /lib/config; uci_apply_defaults'
+}
start() {
[ -f /proc/mounts ] || /sbin/mount_root