Commit b425b951 authored by Mike Hibler's avatar Mike Hibler

Linux: only blacklist modules if /etc/modeprobe.d directory exists.

Sigh...yet another change. This one is not critical, so I didn't remake
the MFSes yet again.
parent 97f731ec
......@@ -897,18 +897,20 @@ dolinux() {
#
# Blacklist the hp ilo stuff.
#
modules="hpilo hpwdt"
for mod in ${modules}; do
grep $mod /mnt/etc/modprobe.d/blacklist.conf >/dev/null 2>&1
case $? in
0)
;;
*)
echo " blacklisting $mod"
echo "blacklist $mod" >> /mnt/etc/modprobe.d/blacklist.conf
;;
esac
done
if [ -d "/mnt/etc/modprobe.d" ]; then
modules="hpilo hpwdt"
for mod in ${modules}; do
grep $mod /mnt/etc/modprobe.d/blacklist.conf >/dev/null 2>&1
case $? in
0)
;;
*)
echo " blacklisting $mod"
echo "blacklist $mod" >> /mnt/etc/modprobe.d/blacklist.conf
;;
esac
done
fi
if [ -f /mnt/var/lib/random-seed -a -c /dev/urandom ]; then
echo " updating /var/lib/random-seed"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment