mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
changed hwdetect
This commit is contained in:
parent
6aa2db66b5
commit
c551bb64ab
1 changed files with 5 additions and 5 deletions
|
@ -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!"
|
||||||
|
|
Loading…
Reference in a new issue