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