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

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

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

exit 0