etc-gentoo/hprofile/profiles/vga/scripts/radeon.stop

26 lines
495 B
Plaintext
Raw Normal View History

#
# vga/scripts/radeon.stop
#
2015-07-31 00:34:53 +00:00
#
# FIXME: Comment in & edit if necessary to unload
# radeon/drm/kms/ttm i.e. to be able to load Fglrx.
#
if [[ ! -e sys/kernel/debug/vgaswitcheroo/switch ]]; then
# echo 0 >/sys/class/vtconsole/vtcon1/bind
2015-07-31 00:34:53 +00:00
if ! rmmod radeon; then
echo "Failed to remove ${1} 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:
#