summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/initscripts/loadnetmod.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/slugos-init/files/initscripts/loadnetmod.sh')
-rw-r--r--packages/slugos-init/files/initscripts/loadnetmod.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/slugos-init/files/initscripts/loadnetmod.sh b/packages/slugos-init/files/initscripts/loadnetmod.sh
new file mode 100644
index 0000000000..eb8f3eb9dd
--- /dev/null
+++ b/packages/slugos-init/files/initscripts/loadnetmod.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# This script is used for loading modules required for networking
+
+# A way of finding which embedded board SlugOS is being run on is needed
+
+echo "Loading networking modules"
+
+modprobe af_packet #Required for DHCP
+
+modprobe ixp4xx_npe
+sleep 1 #Allow Firmware Load
+
+#Conditional required: Not all IXP4xx boards use onboard MAC
+modprobe ixp4xx_mac
+
+exit 0 \ No newline at end of file