script/init.d/ethercat
changeset 812 80c3d9c8292f
parent 806 ab8daaabbe48
child 921 c8c2caf0d667
--- a/script/init.d/ethercat	Thu Feb 21 20:30:22 2008 +0000
+++ b/script/init.d/ethercat	Fri Feb 22 11:04:49 2008 +0000
@@ -175,7 +175,8 @@
     done
 
     # load master module
-    if ! ${MODPROBE} ec_master main_devices=${DEVICES} backup_devices=${BACKUPS}; then
+    if ! ${MODPROBE} ${MODPROBE_FLAGS} ec_master \
+            main_devices=${DEVICES} backup_devices=${BACKUPS}; then
         exit_fail
     fi
 
@@ -199,8 +200,8 @@
                 exit_fail
             fi
         fi
-        if ! ${MODPROBE} ${ECMODULE}; then
-            ${MODPROBE} ${MODULE} # try to restore module
+        if ! ${MODPROBE} ${MODPROBE_FLAGS} ${ECMODULE}; then
+            ${MODPROBE} ${MODPROBE_FLAGS} ${MODULE} # try to restore module
             exit_fail
         fi
     done
@@ -229,7 +230,7 @@
 
     # reload previous modules
     for MODULE in ${DEVICE_MODULES}; do
-        if ! ${MODPROBE} ${MODULE}; then
+        if ! ${MODPROBE} ${MODPROBE_FLAGS} ${MODULE}; then
             echo Warning: Failed to restore ${MODULE}.
         fi
     done