manjaro-tools/scripts/mhwd-live

27 lines
776 B
Text
Raw Normal View History

2014-12-15 03:50:58 +01:00
#!/bin/sh
[[ -r /opt/livecd/util-lng.sh ]] && source /opt/livecd/util-lng.sh
USENONFREE="$(kernel_cmdline nonfree no)"
VIDEO="$(kernel_cmdline xdriver no)"
# hwdetect_graphics
if [ -e "/opt/livecd/pacman-gfx.conf" ] ; then
echo "run mhwd" >> /tmp/livecd.log
if [ "${USENONFREE}" == "yes" ] || [ "${USENONFREE}" == "true" ]; then
if [ "${VIDEO}" == "vesa" ]; then
mhwd --install pci video-vesa --pmconfig "/opt/livecd/pacman-gfx.conf"
else
mhwd --auto pci nonfree 0300 --pmconfig "/opt/livecd/pacman-gfx.conf"
fi
else
if [ "${VIDEO}" == "vesa" ]; then
mhwd --install pci video-vesa --pmconfig "/opt/livecd/pacman-gfx.conf"
else
mhwd --auto pci free 0300 --pmconfig "/opt/livecd/pacman-gfx.conf"
fi
fi
fi
echo "MHWD DONE" > /tmp/mhwd.task