Avoid replacing ccat driver.

This commit is contained in:
Florian Pose 2014-04-25 17:32:26 +02:00
parent 8cf05b96c6
commit 3e3d59d96e
1 changed files with 3 additions and 3 deletions

View File

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