From 76506e7fa4ea2c641382eaf86255c23078ba504b Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 7 Nov 2013 12:45:57 +0000 Subject: base-files: Make /etc/init.d/boot restartable Only reload hostname and timezone config on /etc/init.d/boot restart. Module loading and basic boot setup is only done during boot. Signed-off-by: Helmut Schaa SVN-Revision: 38670 --- package/base-files/files/etc/init.d/boot | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'package') diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index aad59e2..ffcc9f7 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 ] || { -- cgit v1.1