/etc/hotplug.d/usb/20-hplj1020
#!/bin/sh
set -e
# change this to the location where you put the .dl file:
FIRMWARE="/lib/firmware/hp/sihpP1005.dl"
DEVICE=/dev/usb/lp0
LOGFILE=/var/log/hp
daemon_start() {
echo "$(date) : Starting print daemon" >> $LOGFILE
/etc/init.d/p910nd start
}
daemon_stop() {
echo "$(date) : Stopping print daemon" >> $LOGFILE
/etc/init.d/p910nd stop
}
if [ "$PRODUCT" = "3f0/3d17/100" ]; then
case "$ACTION" in
add)
sleep 1
if [ -c $DEVICE ]; then
if [ "$DEVTYPE" = "usb_device" ]; then
echo "$(date) : Sending firmware to printer" >> $LOGFILE
cat $FIRMWARE > $DEVICE
echo "$(date) : done." >> $LOGFILE
daemon_start
fi
fi
;;
remove)
daemon_stop
;;
esac
fi
/lib/firmware/hp/sihpP1005.dl - google for it
/etc/config/p910nd
config p910nd
option device /dev/usb/lp0
option port 0
option bidirectional 0
option enabled 1
/dev/usb/lp0 shoud be present
first try cat /lib/firmware/hp/sihpP1005.dl > /dev/usb/lp0
printer flashes red light and rotates mechanics
then test unplugging and plugging, power off/on
check /var/log/hp