script/init.d/ethercat.in
changeset 1800 5bfbb7be5400
parent 1790 c4e3ee5632b2
child 1804 742607c464c4
equal deleted inserted replaced
1799:f228415225b7 1800:5bfbb7be5400
    47 
    47 
    48 MODPROBE=/sbin/modprobe
    48 MODPROBE=/sbin/modprobe
    49 RMMOD=/sbin/rmmod
    49 RMMOD=/sbin/rmmod
    50 MODINFO=/sbin/modinfo
    50 MODINFO=/sbin/modinfo
    51 ETHERCAT=@prefix@/bin/ethercat
    51 ETHERCAT=@prefix@/bin/ethercat
       
    52 MASTER_ARGS=
    52 
    53 
    53 #------------------------------------------------------------------------------
    54 #------------------------------------------------------------------------------
    54 
    55 
    55 ETHERCAT_CONFIG=/etc/sysconfig/ethercat
    56 ETHERCAT_CONFIG=/etc/sysconfig/ethercat
    56 
    57 
   160 
   161 
   161         MASTER_INDEX=$(expr ${MASTER_INDEX} + 1)
   162         MASTER_INDEX=$(expr ${MASTER_INDEX} + 1)
   162     done
   163     done
   163 
   164 
   164     # load master module
   165     # load master module
   165     if ! ${MODPROBE} ${MODPROBE_FLAGS} ec_master \
   166     if ! ${MODPROBE} ${MODPROBE_FLAGS} ec_master ${MASTER_ARGS} \
   166             main_devices=${DEVICES} backup_devices=${BACKUPS}; then
   167             main_devices=${DEVICES} backup_devices=${BACKUPS}; then
   167         exit_fail
   168         exit_fail
   168     fi
   169     fi
   169 
   170 
   170     # check for modules to replace
   171     # check for modules to replace