script/ethercat.sh
changeset 325 7833cf70c4f2
parent 324 9aa51cbdbfae
child 360 a7a8ed41b50a
--- a/script/ethercat.sh	Wed Aug 02 23:16:10 2006 +0000
+++ b/script/ethercat.sh	Thu Aug 03 12:51:17 2006 +0000
@@ -163,7 +163,7 @@
 		fi
 
 	    # unload conflicting modules at first
-		for mod in 8139too 8139cp; do
+		for mod in 8139too; do
 			if lsmod | grep "^$mod " > /dev/null; then
 				if ! rmmod $mod; then
 					/bin/false
@@ -175,6 +175,7 @@
 
 	    # load master module
 		if ! modprobe ec_master ec_eoeif_count=$EOE_INTERFACES; then
+			modprobe 8139too
 			/bin/false
 			rc_status -v
 			rc_exit
@@ -182,6 +183,8 @@
 
         # load device module
 		if ! modprobe ec_8139too ec_device_index=$DEVICE_INDEX; then
+			rmmod ec_master
+			modprobe 8139too
 			/bin/false
 			rc_status -v
 			rc_exit