X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=package%2Fbase-files%2Ffiles%2Fetc%2Finit.d%2Fboot;h=ffcc9f7adf27c3f6d44f52bc98027090bdd9582b;hp=aad59e25dadd376cd25b17743936867b0b1ae0ab;hb=eeff8a52ec0d0f70aa3beadbd9dd01274790df54;hpb=0ee3e4c3b0bb586585c1885c16c964b915a86e11 diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index aad59e25da..ffcc9f7adf 100755 --- a/package/base-files/files/etc/init.d/boot +++ b/package/base-files/files/etc/init.d/boot @@ -31,6 +31,11 @@ apply_uci_config() { } start() { + config_load system + config_foreach system_config system +} + +boot() { [ -f /proc/mounts ] || /sbin/mount_root [ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc [ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD @@ -63,9 +68,8 @@ start() { # temporary hack until configd exists /sbin/reload_config - - config_load system - config_foreach system_config system + + start # create /dev/root if it doesn't exist [ -e /dev/root -o -h /dev/root ] || {