changed hwdetect

This commit is contained in:
Tobias Powalowski 2010-02-08 07:32:31 +01:00
parent 6aa2db66b5
commit c551bb64ab

View file

@ -12,14 +12,14 @@ run_hook ()
# for alias in $(/sbin/modinfo $i|grep ^alias\:|cut -d' ' -f11); do # for alias in $(/sbin/modinfo $i|grep ^alias\:|cut -d' ' -f11); do
# [ -z "$(modprobe --show-depends $alias|grep '/ata/'|grep -v 'libata.ko')" ] && echo "$(basename ${i})" | sed -e 's/.ko//g' >> /tmp/.ide-blacklist # [ -z "$(modprobe --show-depends $alias|grep '/ata/'|grep -v 'libata.ko')" ] && echo "$(basename ${i})" | sed -e 's/.ko//g' >> /tmp/.ide-blacklist
# done # done
for i in $(echo /lib/modules/$(uname -r)/kernel/drivers/ide/pci/*); do for i in $(echo /lib/modules/$(uname -r)/kernel/drivers/ide/*); do
basename $i .ko | grep -v ^ide >> /tmp/.ide-blacklist echo "blacklist $(basename $i .ko | grep -v ^ide)" >> /etc/modprobe.d/ide-blacklist.conf
done done
msg "Blacklisted IDE modules (old subsystem) for udev:" msg "Blacklisted IDE modules (old subsystem) for udev:"
msg "--------------------------------------" msg "--------------------------------------"
if [ -s /tmp/.ide-blacklist ]; then if [ -s /etc/modprobe.d/ide-blacklist.conf ]; then
for i in $(sort -u /tmp/.ide-blacklist); do for i in $(sort -u /etc/modprobe.d/ide-blacklist.conf); do
echo -n "$i " echo -n "$i " | sed 's/blacklist//g'
done done
msg "" msg ""
msg "If you need them, please use 'ide-legacy' boot option or load them by hand!" msg "If you need them, please use 'ide-legacy' boot option or load them by hand!"