updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / lm1100 / lm1100maint-0.1
blob117452e16cad27174c019b7df5bb83c273f3851b
1 #!/bin/sh
2 CMDPATH=/usr/share/lm1100maint
3 CMDBACK=$CMDPATH/lexmarkback
4 CMDCHANGE=$CMDPATH/lexmarkchange
6 while getopts "bcd:h" OPTION; do
7 case $OPTION in
8 b)
9 CMD=$CMDBACK
12 CMD=$CMDCHANGE
15 DEVICE=$OPTARG
16 [ -c $OPTARG ] || echo "`basename $0`: $OPTARG: no such device"
17 exit
20 echo "Usage: `basename $0` -[c|b] -d <DEVICE>"
21 exit
24 exit
26 esac
27 done
28 dd if=$CMD of=$DEVICE &>/dev/null