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

18 lines
185 B
Bash
Raw Normal View History

2012-11-19 13:54:37 +04: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