From daa59b7513eb66b7c184474ea188fda4dd4a4aee Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 9 Dec 2009 15:15:25 +0000 Subject: 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 --- package/base-files/files/etc/init.d/boot | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'package/base-files/files/etc/init.d') diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index aa9e96778..2ed4c5061 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 -- cgit v1.2.3