IWL_OLD="iwl4965"
# Appended to module file at the end when we want to ignore one
-USAGE="Usage: $0 [ $IWL | $IWL_OLD ]"
+USAGE="Usage: $0 [ $IWL_NEW | $IWL_OLD ]"
function enable_iwlagn {
module_disable $IWL_OLD
fi
MODULE=$1
-if [ "$MODULE" == "iwl4954" ]; then
+if [ "$MODULE" == "iwl4965" ]; then
module_disable $IWL_NEW
module_enable $IWL_OLD
elif [ "$MODULE" == "iwlagn" ]; then
ALL_MODULES=`find /lib/modules/$VER/ -name $MODULE_KO`
COUNT=1
CHECK=`modprobe -l $MODULE`
- while [ ! -z $CHECK ]; do
+ for i in $ALL_MODULES; do
if [[ $MODULE_COUNT -gt 1 ]]; then
if [[ $COUNT -eq 1 ]]; then
echo -en "$MODULE_COUNT $MODULE modules found "
else
echo -en "Disabling $MODULE ..."
fi
- mv -f /lib/modules/$VER/$CHECK /lib/modules/$VER/${CHECK}${IGNORE_SUFFIX}
+ mv -f $i ${i}${IGNORE_SUFFIX}
depmod -ae
CHECK_AGAIN=`modprobe -l $MODULE`
if [ "$CHECK" != "$CHECK_AGAIN" ]; then
echo "$CHECK"
fi
let COUNT=$COUNT+1
- CHECK=$CHECK_AGAIN
done
}