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

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