quarks/x11-drivers/nvidia-drivers/files/nvidia-udev.sh

18 lines
185 B
Bash
Raw Normal View History

2012-04-21 18:23:12 +00:00
#!/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