summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-drivers/files/nvidia-udev.sh
blob: 9487b08e7a5e8f3fa28aaea5f8f4d93a54a145de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

if [ $# -ne 1 ]; then
	echo "Invalid args" >&2
	exit 1
fi

case $1 in
	add|ADD)
		/opt/bin/nvidia-smi > /dev/null
		;;
	remove|REMOVE)
		rm -f /dev/nvidia*
		;;
esac

exit 0