Printer don't print

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
miesnieks
Posts: 4
Joined: Wed Feb 13, 2013 3:02 pm

Printer don't print

Post by miesnieks »

I have upgraded my TP-Link TL-WR1043N/ND v1 router from Gargoyle 1.5.6 to 1.5.9 but now my HP laserjet1020 doesn't work;

In early version this worked:
opkg update
opkg install kmod-usb-printer p910nd
/etc/init.d/p910nd start
/etc/init.d/p910nd enable
wget -O /usr/lib/sihp1020.dl http://oleg.wl500g.info/hplj/sihp1020.dl

then at
vi /etc/hotplug.d/usb/20-hplj1020
I added

#!/bin/sh
set -e
# change this to the location where you put the .dl file:

FIRMWARE="/usr/lib/sihp1020.dl"

DEVICE=/dev/lp0
LOGFILE=/var/log/hp

if [ "$PRODUCT" = "3f0/2b17/100" -a "$ACTION" = "add" ]; then
for i in $(seq 30); do
if [ -c $DEVICE ]; then
echo "$(date) : Sending firmware to printer…" > $LOGFILE
cat $FIRMWARE > $DEVICE
echo "$(date) : done." » $LOGFILE
exit
fi
sleep 1
done
fi

/////////////////////// OR THIS CODE ///////////////



#!/bin/sh
set -e

FIRMWARE="/usr/lib/sihp1020.dl"
DEVICE=/dev/lp0
LOGFILE=/var/log/hp

if [ "$PRODUCT" = "3f0/2b17/100" -a "$ACTION" = "add" -a "$DEVTYPE" = "usb_interface" ]; then
echo "$(date): STARTING" > $LOGFILE
for i in $(seq 30); do
echo "$(date): Attempt number $i on $DEVICE" » $LOGFILE
if [ -c $DEVICE ]; then
echo "$(date): Device $DEVICE found." » $LOGFILE
if [ -z "`usb_printerid $DEVICE | grep FWVER`" ]; then
echo "$(date): No firmware found on $DEVICE" » $LOGFILE
echo "$(date): Sending firmware to printer…" » $LOGFILE
cat $FIRMWARE > $DEVICE
echo "$(date): done." » $LOGFILE
else
echo "$(date): Firmware already there on $DEVICE" » $LOGFILE
fi
echo "$(date): EXITING" » $LOGFILE
exit
fi
sleep 1
done
fi

What is changed in version 1.5.9 and how to get my printer back to work?

Post Reply