1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh if [ $(id -u) -ne 0 ] ; then echo "run me as root!" >&2 exit 1 fi if [ $# -eq 0 ] ; then echo "usage: $0 /dev/lork" >&2 exit 1 fi exit 0