--- foo2zjs/hplj1000~ 2011-11-30 13:46:32.000000000 +0100 +++ foo2zjs/hplj1000 2011-11-30 13:47:15.427823974 +0100 @@ -154,57 +154,6 @@ rm -f /etc/udev/rules.d/*hpmud*laserjet_${model}* rm -f /etc/udev/rules.d/*hpmud_support.rules -# -# The special command line argument "install-usermap" will install -# the proper entry into the /etc/hotplug/usb.usermap file -# -case "$1" in -install-usermap) - if [ "$USB2" != "" ]; then - if [ -w /etc/hotplug/usb.usermap ]; then - USERMAP=/etc/hotplug/usb.usermap - elif [ -d /etc/hotplug/usb/ ]; then - USERMAP=/etc/hotplug/usb/foo2zjs.usermap - if [ ! -s $USERMAP ]; then - echo > $USERMAP - fi - else - log "No /etc/hotplug usermap!" - exit - fi - chmod 664 $USERMAP - ex - $USERMAP <<-EOF - g/^hplj$MODEL/d - \$a - hplj$MODEL 0x0003 $USB1 $USB2 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 - . - w - q - EOF - else - log "I don't know the USB info for this model yet. Please run" - log "usb_printerid on the usb device and send the output to:" - log "rick.richardson@comcast.net" - fi - exit 0 - ;; -install-usblp) - for f in /etc/modprobe.d/blacklist*; do - if grep -s -q usblp $f; then - ed - $f <<-EOF - g/^blacklist.*usblp/d - w - q - EOF - #echo $f - /sbin/modprobe usblp - fi - done - exit 0 - ;; -esac - -# # Procedures to load a single device with firmware # load_usblp() {