aboutsummarylogtreecommitdiffstats
path: root/check_active_gpu.sh
blob: 4d9e0b73c0304e4dbc4f36acf6fc6f974e95bf3c (plain)
1
2
3
4
5
6
7
#!/usr/bin/env sh 

vgaswitcheroo_path='/sys/kernel/debug/vgaswitcheroo/switch'
active_card=`grep '+' $vgaswitcheroo_path|awk '{split($0,a,":"); print a[2]}'`

echo $active_card