You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
667 B

  1. #!/bin/sh
  2. # Copyright (C) 2009 OpenWrt.org
  3. case "$ACTION" in
  4. add)
  5. # You have to figure out your PRODUCT id. Uncomment the line below,
  6. # attach and detach your HP USB printer to find your id in /tmp/hplip.test.
  7. # It will look like "Found 3f0/1717/100 on /proc/bus/usb/002/009"
  8. # Replace 3f0/1717/100 below with your id.
  9. #
  10. # echo "Found $PRODUCT on $DEVICE" > /tmp/hplip.test
  11. [ "$PRODUCT" = "3f0/1717/100" ] && chown nobody $DEVICE && chmod 666 $DEVICE
  12. ;;
  13. remove)
  14. # device is gone
  15. ;;
  16. esac