pentoo-livecd: fix bdh again

This commit is contained in:
Rick Farina (Zero_Chaos) 2018-11-09 13:22:47 -05:00
parent 8b86153010
commit adafd84849
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
2 changed files with 8 additions and 3 deletions

View file

@ -38,8 +38,13 @@ start() {
modprobe nvidia || NVIDIA_FAILURE=yes
if [ "${NVIDIA_FAILURE}" = "yes" ]; then
eerror "Nvidia binary driver failed to load, something went wrong. Falling back to open source nouveau driver..."
switch_to_nouveau
eerror "Nvidia binary driver failed to load, something went wrong."
if $(lspci -d8086: | grep -q VGA); then
eerror "Intel detected, crossing fingers and continuing without a working nvidia driver"
else
eerror "Falling back to open source nouveau driver..."
switch_to_nouveau
fi
else
einfo "Enabling evil binary nvidia driver..."
#blacklist the open drivers

View file

@ -39,7 +39,7 @@ src_install() {
newsbin "${FILESDIR}"/makemo-2018.0-r1 makemo
newsbin "${FILESDIR}"/livecd-setpass-r1 livecd-setpass
newinitd "${FILESDIR}"/binary-driver-handler.initd-2018.3 binary-driver-handler
newinitd "${FILESDIR}"/binary-driver-handler.initd-2018.3-r1 binary-driver-handler
exeinto /root/Desktop
doexe "${FILESDIR}"/networkmanager.desktop