do not start multiple subshells for applying /etc/uci-defaults. use sh -x for hush...
[openwrt-10.03/.git] / package / base-files / files / etc / init.d / boot
index aa9e967787467e72a90a6bcceb799b1119f3dabf..2ed4c50613c5e2ac32d3380fdb021e5f41cd8557 100755 (executable)
@@ -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