summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/boot/network
diff options
context:
space:
mode:
Diffstat (limited to 'packages/slugos-init/files/boot/network')
-rw-r--r--packages/slugos-init/files/boot/network20
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