Added variable vor master module arguments.
authorFlorian Pose <fp@igh-essen.com>
Tue, 26 Jan 2010 10:15:59 +0100
changeset 1790 c4e3ee5632b2
parent 1789 058248c47ba0
child 1791 27030c6b2de3
Added variable vor master module arguments.
script/init.d/ethercat.in
--- a/script/init.d/ethercat.in	Mon Jan 25 18:32:45 2010 +0100
+++ b/script/init.d/ethercat.in	Tue Jan 26 10:15:59 2010 +0100
@@ -49,6 +49,7 @@
 RMMOD=/sbin/rmmod
 MODINFO=/sbin/modinfo
 ETHERCAT=@prefix@/bin/ethercat
+MASTER_ARGS=
 
 #------------------------------------------------------------------------------
 
@@ -162,7 +163,7 @@
     done
 
     # load master module
-    if ! ${MODPROBE} ${MODPROBE_FLAGS} ec_master \
+    if ! ${MODPROBE} ${MODPROBE_FLAGS} ec_master ${MASTER_ARGS} \
             main_devices=${DEVICES} backup_devices=${BACKUPS}; then
         exit_fail
     fi