summaryrefslogtreecommitdiffstats
path: root/short/short_unload
blob: db6b36a3bb167d696289870cf84e3a0db63b86e9 (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
rmmod $module $* || exit 1

# Remove stale nodes

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