15 lines
170 B
Bash
15 lines
170 B
Bash
#!/bin/sh
|
|
module="simple"
|
|
device="simple"
|
|
|
|
# invoke rmmod with all arguments we got
|
|
/sbin/rmmod $module $* || exit 1
|
|
|
|
# Remove stale nodes
|
|
rm -f /dev/${device}[rn]
|
|
|
|
|
|
|
|
|
|
|