summaryrefslogtreecommitdiffstats
path: root/short/short_unload
blob: 7cf64dcfdc37c9b01a05246ba9cd2d2fbf36c3c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
module="short"
device="short"

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

# Remove stale nodes

rm -f /dev/${device}[0-7] /dev/${device}[0-7][ps] \
    /dev/${device}int /dev/${device}print