summaryrefslogtreecommitdiffstats
path: root/scullv/scullv_unload
blob: 13608e816097e6b40108845b1c4d7ca11249d60b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
module="scullv"
device="scullv"

# invoke rmmod with all arguments we got
/sbin/rmmod $module $* || exit 1

# remove nodes
rm -f /dev/${device}[0-3] /dev/${device}

exit 0