1 2 3 4 5 6 7 8 9
#!/bin/bash MODULE=hello DEVICE=helloc /usr/bin/rmmod ${MODULE}.ko $* || exit 1 rm -f /dev/${DEVICE}[0]