saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
23
hprofile/profiles/vga/scripts/radeon.stop
Normal file
23
hprofile/profiles/vga/scripts/radeon.stop
Normal file
@@ -0,0 +1,23 @@
|
||||
#
|
||||
# vga/scripts/radeon.stop
|
||||
#
|
||||
|
||||
|
||||
# Comment the following line and uncomment the other lines
|
||||
# to force remove nouveau/kms driver for e.g. fglrx
|
||||
if [[ ! -e sys/kernel/debug/vgaswitcheroo/switch ]]; then
|
||||
# echo 0 >/sys/class/vtconsole/vtcon1/bind
|
||||
if ! rmmod nouveau; then
|
||||
echo "failed to remove fglrx module"
|
||||
else
|
||||
[[ -x /etc/init.d/consolefont ]] &&
|
||||
/etc/init.d/consolefont restart
|
||||
# rmmod ttm
|
||||
# rmmod drm_kms_helper
|
||||
# rmmod dri
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
# vim:fenc=utf-8:ft=sh:ci:pi:sts=0:sw=4:ts=4:
|
||||
#
|
||||
Reference in New Issue
Block a user