This commit is contained in:
Hans Wurst
2015-07-31 02:34:53 +02:00
parent d02a7cedc8
commit 4d9533ca0a
161 changed files with 248 additions and 30687 deletions

View File

@@ -3,13 +3,16 @@
#
# Uncomment the following line and last one if one need
# to force remove nouveau/kms driver for e.g. nvidia
#
# FIXME: Comment out & edit if necessary to unload
# nouveau/drm/kms/ttm i.e. to be able to load nVidia.
#
if [[ ! -e sys/kernel/debug/vgaswitcheroo/switch ]]; then
echo 0 >/sys/class/vtconsole/vtcon1/bind
if ! rmmod nouveau; then
die "Failed to remove nouveau kernel module"
die "Failed to remove ${1} kernel module"
else
[[ -x /etc/init.d/consolefont ]] &&
/etc/init.d/consolefont restart
rmmod ttm
rmmod drm_kms_helper