saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
2015-02-27 01:58:55 +01:00
committed by root
commit b3cea8d893
2385 changed files with 507432 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#
# vga/ptest
#
local switch=/sys/kernel/debug/vgaswitcheroo/switch
local drv
if [[ ! -e $switch ]]; then
grep -q i915 /proc/modules || modprobe i915 >/dev/null 2>&1
grep -q radeon /proc/modules || modprobe radeon >/dev/null 2>&1
grep -q nouveau /proc/modules || modprobe nouveau >/dev/null 2>&1
fi
drv="$(lspci -k | sed -nre 's/.*Kernel driver in use: ((i915|fglrx|radeon|nouveau|nvidia))/\1/p')"
[[ "$drv" == "i915" ]] && drv=intel
echo "$drv"
#
# vim:fenc=utf-8:ft=sh:ci:pi:sts=0:sw=4:ts=4:
#