summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/boot/network
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2008-08-25 12:35:41 +0000
committerMichael Lauer <mickey@vanille-media.de>2008-08-25 12:35:41 +0000
commit64ff4d57e39e9fad1385c00b4665afa5d66c75f3 (patch)
treead51678b0114a7afc784507cc686efa5a5980fd3 /packages/slugos-init/files/boot/network
parent170632400a39c176bb6678cfaa63f12c2b28d9ab (diff)
parentad284adbc15624a03ffa9d912bcd59d7ac5c4a0a (diff)
merge of '19345cff74205f76f6a9f18a8cbd4dd6bb2f4298'
and 'ae7c41d4de5eda76de5c1cb6a2a4fe160fbc9a1d'
Diffstat (limited to 'packages/slugos-init/files/boot/network')
-rw-r--r--packages/slugos-init/files/boot/network12
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/slugos-init/files/boot/network b/packages/slugos-init/files/boot/network
index 8124f19ab2..48aa9dd7d5 100644
--- a/packages/slugos-init/files/boot/network
+++ b/packages/slugos-init/files/boot/network
@@ -24,8 +24,12 @@ 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
-sysf="/sys/class/firmware/firmware-$iface"
+# 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
+# some other firmware, then modification will be required. We probably
+# should replace this with mdev or some other hotplug-based technique...
+sysf="/sys/class/firmware/$iface"
(
# Wait for the firware to be requested, if required
[ -f $sysf/loading ] || sleep 1
@@ -39,5 +43,9 @@ sysf="/sys/class/firmware/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