summaryrefslogtreecommitdiffstats
path: root/scullv/scullv_unload
blob: 840217ff95c546c86fc420d2c63e0d2088c30e90 (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
rmmod $module $* || exit 1

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

exit 0