--- 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