79 |
install -m0644 /lib/grub/*/video.lst /boot/grub/video.lst |
install -m0644 /lib/grub/*/video.lst /boot/grub/video.lst |
80 |
fi |
fi |
81 |
|
|
|
# check for special hardware |
|
|
if [[ -x $(which hwinfo) ]] |
|
|
then |
|
|
# zotac devices |
|
|
if [[ ! -z $(hwinfo --bios --storage | grep -i zotac) ]] |
|
|
then |
|
|
grubopts="rootdelay=8" |
|
|
echo "Special device 'ZOTAC' detected!" |
|
|
fi |
|
|
fi |
|
|
|
|
|
# fix grubconfig for special devices |
|
|
if [[ -n ${grubopts} ]] |
|
|
then |
|
|
sed -i "s:^\(export GRUB_CMDLINE_LINUX=\).*:\1\"${grubopts}\":" /etc/conf.d/grub |
|
|
fi |
|
|
|
|
82 |
# update grub.cfg |
# update grub.cfg |
83 |
grub-mkconfig -o /boot/grub/grub.cfg |
grub-mkconfig -o /boot/grub/grub.cfg |
84 |
|
|