mirror of https://github.com/Chizi123/Scripts.git

Joel Grunbaum
2021-08-31 91849229d535bc15f7bc165afcf2c0f963db9909
commit | author | age
5008b0 1 if [ $EUID != 0 ]; then
JG 2     sudo "$0" "$@"
3     exit $?
4 fi
5
6 case $1 in
7     start)
8         echo "fd798828-3180-4c19-a634-b88ddea27abe" > "/sys/devices/pci0000:00/0000:00:02.0/mdev_supported_types/i915-GVTg_V5_4/create"
9         ;;
10     stop)
11         echo 1 > "/sys/devices/pci0000:00/0000:00:02.0/fd798828-3180-4c19-a634-b88ddea27abe/remove"
12         ;;
13     *)
14         echo "Usage $0 start|stop"
15         ;;
16 esac
17