diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-12-09 15:15:25 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-12-09 15:15:25 +0000 |
commit | 889532d1fd7d2fe969f5ae454e38bf8f1e59bd95 (patch) | |
tree | 4c0681e9e6735325824e9059aadb01cf65aae091 /package/base-files/files/etc/init.d | |
parent | 74cbcc9ee5b4e8db11dfbc91d33abdfaeec4f962 (diff) | |
download | mtk-20170518-889532d1fd7d2fe969f5ae454e38bf8f1e59bd95.zip mtk-20170518-889532d1fd7d2fe969f5ae454e38bf8f1e59bd95.tar.gz mtk-20170518-889532d1fd7d2fe969f5ae454e38bf8f1e59bd95.tar.bz2 |
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/init.d')
-rwxr-xr-x | package/base-files/files/etc/init.d/boot | 7 |
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 aa9e967..2ed4c50 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 |