diff options
author | Mike Westerhof <mwester@dls.net> | 2008-12-07 20:26:53 -0600 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2008-12-07 20:28:14 -0600 |
commit | 3c4e7b4bbb9501ec04a301fdb623d2483c6649e4 (patch) | |
tree | 51269a364bc0a8d247b48c55a714025c2f6c10eb /packages/slugos-init/files/boot/network | |
parent | 1a8a75a3944336819c7cc346a0925febb39953e9 (diff) |
slugos-init: drop boot/kexec, alway mount /proc and /sys
Diffstat (limited to 'packages/slugos-init/files/boot/network')
-rw-r--r-- | packages/slugos-init/files/boot/network | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/packages/slugos-init/files/boot/network b/packages/slugos-init/files/boot/network index 48aa9dd7d5..b8054a0056 100644 --- a/packages/slugos-init/files/boot/network +++ b/packages/slugos-init/files/boot/network @@ -3,27 +3,21 @@ # netconsole logging and NFS boot. This runs out # of flash, but that's ok because the script doesn't # leave any process running. -# + # NOTE: /etc/default/functions defines ifup as a shell # function! . /etc/default/functions -# -# /proc is needed for the module loading, and /sys is -# necessary to load firmware (if required). -mount -t proc proc /proc -mount -t sysfs sysfs /sys -# + # We may need to load the network driver modules here . /etc/default/modulefunctions loadnetmods -# -# + # Now all the information for booting should be in the configuration # file. Config the loopback and network interfaces. ifconfig lo 127.0.0.1 up iface="$(config iface)" test -z "$iface" && exit 1 -# + # Fire up a process in the background to load the firmware if necessary. # If this system doesn't require the NPE-B firmware, no problem, the # background process will simply go away in two seconds. If it requires @@ -42,10 +36,6 @@ sysf="/sys/class/firmware/$iface" ) & # Trigger the firmware load proactively ifconfig "$iface" up -# -# Unmount /sys and /proc before we leave -umount /sys -umount /proc -# + ifup "$iface" # exit code is true only if the interface config has succeeded |