diff --git a/script/ethercatctl.in b/script/ethercatctl.in index 281794e7..67bafde2 100755 --- a/script/ethercatctl.in +++ b/script/ethercatctl.in @@ -107,7 +107,7 @@ start) continue # ec_* module not found fi - if [ ${MODULE} != "generic" ]; then + if [ ${MODULE} != "generic" -a ${MODULE} != "ccat" ]; then # try to unload standard module if lsmod | grep "^${MODULE} " > /dev/null; then if ! ${RMMOD} ${MODULE}; then @@ -118,7 +118,7 @@ start) fi if ! ${MODPROBE} ${MODPROBE_FLAGS} ${ECMODULE}; then - if [ ${MODULE} != "generic" ]; then + if [ ${MODULE} != "generic" -a ${MODULE} != "ccat" ]; then ${MODPROBE} ${MODPROBE_FLAGS} ${MODULE} # try to restore fi ${RMMOD} ${LOADED_MODULES} @@ -149,7 +149,7 @@ stop) # load standard modules again for MODULE in ${DEVICE_MODULES}; do - if [ ${MODULE} == "generic" ]; then + if [ ${MODULE} == "generic" -o ${MODULE} == "ccat" ]; then continue fi ${MODPROBE} ${MODPROBE_FLAGS} ${MODULE}