|
From: <ow...@us...> - 2008-01-30 16:48:35
|
Revision: 1048
http://ipcop.svn.sourceforge.net/ipcop/?rev=1048&view=rev
Author: owes
Date: 2008-01-30 08:47:40 -0800 (Wed, 30 Jan 2008)
Log Message:
-----------
No point in checking for eth0,1,2,3 order, udev takes care of that
Modified Paths:
--------------
ipcop/trunk/config/rc.d/rc.network
Modified: ipcop/trunk/config/rc.d/rc.network
===================================================================
--- ipcop/trunk/config/rc.d/rc.network 2008-01-30 16:44:52 UTC (rev 1047)
+++ ipcop/trunk/config/rc.d/rc.network 2008-01-30 16:47:40 UTC (rev 1048)
@@ -43,29 +43,19 @@
[ "$alias" != "off" ] && /sbin/modprobe $alias
done
-# The 'for' loop force driver loading order
-for NIC in 0 1 2 3; do
- ETHX="eth${NIC}"
- if [ "$GREEN_DEV" == "$ETHX" ]; then
- if [ "$GREEN_DRIVER" != "" ]; then
- modprobe $GREEN_DRIVER $GREEN_DRIVER_OPTIONS
- fi
- fi
- if [ "$ORANGE_DEV" == "$ETHX" ]; then
- if [ "$ORANGE_DRIVER" != "" ]; then
- modprobe $ORANGE_DRIVER $ORANGE_DRIVER_OPTIONS
- fi
- fi
- if [ "$BLUE_DEV" == "$ETHX" ]; then
- if [ "$BLUE_DRIVER" != "" ]; then
- modprobe $BLUE_DRIVER $BLUE_DRIVER_OPTIONS
- fi
- fi
- if [ "$RED_DEV" == "$ETHX" ]; then
- if [ "$RED_DRIVER" != "" ]; then
- modprobe $RED_DRIVER $RED_DRIVER_OPTIONS
- fi
- fi
+# order is (no longer) important, udev handles that
+if [ "$GREEN_DRIVER" != "" ]; then
+ modprobe $GREEN_DRIVER $GREEN_DRIVER_OPTIONS
+fi
+if [ "$ORANGE_DRIVER" != "" ]; then
+ modprobe $ORANGE_DRIVER $ORANGE_DRIVER_OPTIONS
+fi
+if [ "$BLUE_DRIVER" != "" ]; then
+ modprobe $BLUE_DRIVER $BLUE_DRIVER_OPTIONS
+fi
+if [ "$RED_DRIVER" != "" ]; then
+ modprobe $RED_DRIVER $RED_DRIVER_OPTIONS
+fi
done
if [ -d /proc/bus/pccard ]; then
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|