base-files: Make /etc/init.d/boot restartable
[openwrt.git] / package / base-files / files / etc / init.d / boot
index 078adb8..ffcc9f7 100755 (executable)
@@ -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
@@ -60,8 +65,11 @@ start() {
        rm -f /tmp/wireless.tmp
 
        apply_uci_config
-       config_load system
-       config_foreach system_config system
+       
+       # temporary hack until configd exists
+       /sbin/reload_config
+
+       start
 
        # create /dev/root if it doesn't exist
        [ -e /dev/root -o -h /dev/root ] || {