mirror of https://github.com/hak5/openwrt-owl.git
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 <helmut.schaa@googlemail.com> SVN-Revision: 38670owl
parent
3de4bdc36f
commit
76506e7fa4
|
@ -31,6 +31,11 @@ apply_uci_config() {
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
config_load system
|
||||||
|
config_foreach system_config system
|
||||||
|
}
|
||||||
|
|
||||||
|
boot() {
|
||||||
[ -f /proc/mounts ] || /sbin/mount_root
|
[ -f /proc/mounts ] || /sbin/mount_root
|
||||||
[ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
|
[ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
|
||||||
[ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD
|
[ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD
|
||||||
|
@ -64,8 +69,7 @@ start() {
|
||||||
# temporary hack until configd exists
|
# temporary hack until configd exists
|
||||||
/sbin/reload_config
|
/sbin/reload_config
|
||||||
|
|
||||||
config_load system
|
start
|
||||||
config_foreach system_config system
|
|
||||||
|
|
||||||
# create /dev/root if it doesn't exist
|
# create /dev/root if it doesn't exist
|
||||||
[ -e /dev/root -o -h /dev/root ] || {
|
[ -e /dev/root -o -h /dev/root ] || {
|
||||||
|
|
Loading…
Reference in New Issue