]> git.pld-linux.org Git - packages/foo2zjs.git/blame - foo2zjs-hplj1000.patch
- package new file: command2foo2lava-pjl
[packages/foo2zjs.git] / foo2zjs-hplj1000.patch
CommitLineData
294d6f43
AM
1--- foo2zjs/hplj1000~ 2011-11-30 13:46:32.000000000 +0100
2+++ foo2zjs/hplj1000 2011-11-30 13:47:15.427823974 +0100
3@@ -154,57 +154,6 @@
4 rm -f /etc/udev/rules.d/*hpmud*laserjet_${model}*
5 rm -f /etc/udev/rules.d/*hpmud_support.rules
37b3d2a2 6
37b3d2a2 7-#
8-# The special command line argument "install-usermap" will install
9-# the proper entry into the /etc/hotplug/usb.usermap file
10-#
11-case "$1" in
12-install-usermap)
13- if [ "$USB2" != "" ]; then
14- if [ -w /etc/hotplug/usb.usermap ]; then
15- USERMAP=/etc/hotplug/usb.usermap
16- elif [ -d /etc/hotplug/usb/ ]; then
17- USERMAP=/etc/hotplug/usb/foo2zjs.usermap
18- if [ ! -s $USERMAP ]; then
19- echo > $USERMAP
20- fi
21- else
22- log "No /etc/hotplug usermap!"
23- exit
24- fi
25- chmod 664 $USERMAP
26- ex - $USERMAP <<-EOF
27- g/^hplj$MODEL/d
28- \$a
29- hplj$MODEL 0x0003 $USB1 $USB2 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
30- .
31- w
32- q
33- EOF
34- else
35- log "I don't know the USB info for this model yet. Please run"
36- log "usb_printerid on the usb device and send the output to:"
37- log "rick.richardson@comcast.net"
38- fi
39- exit 0
40- ;;
294d6f43
AM
41-install-usblp)
42- for f in /etc/modprobe.d/blacklist*; do
43- if grep -s -q usblp $f; then
44- ed - $f <<-EOF
45- g/^blacklist.*usblp/d
46- w
47- q
48- EOF
49- #echo $f
50- /sbin/modprobe usblp
51- fi
52- done
53- exit 0
54- ;;
37b3d2a2 55-esac
294d6f43
AM
56-
57-#
58 # Procedures to load a single device with firmware
37b3d2a2 59 #
294d6f43 60 load_usblp() {
This page took 0.172431 seconds and 4 git commands to generate.