lp-command 182 B

12345678910111213
  1. #!/bin/sh
  2. FILE=${@: -1}
  3. ARGS=${@:1:$#-1}
  4. if [ $1 == '-q' ] ; then
  5. shift
  6. addPrintJob ${FILE} ${ARGS}
  7. elif atHome ; then
  8. lp $@
  9. else
  10. echo lpremote ${FILE} ${ARGS}
  11. fi