bz home

Настройка печати

S90print
#!/bin/sh
#
# Printing
#
# load usb print driver
/sbin/insmod /lib/modules/2.6.12.6-arm1/usblp.ko > /dev/null 2>&1

echo "/opt/sbin/hotplug.sh" > /proc/sys/kernel/hotplug
hotplug.sh
#!/bin/sh

# just continue for HP LJ 1018 printer only

LOG=/opt/var/log/hotplug.log
PRN_BIN=/opt/bin/usb_printerid
PRN_FRM=/opt/share/hplj/sihp1018.dl

echo --------------- `date` >> $LOG
echo $* "ACTION=[$ACTION] PRODUCT=[$PRODUCT]" >> $LOG
# uncomment to see all environment
#set >> $LOG
if [ "$PRODUCT" = "3f0/4117/100" ]; then
    if [ "$ACTION" = "add" ]; then
        echo "HP LJ 1018: Printer OnLine" >> $LOG
        sleep 5
        $PRN_BIN /dev/usb/lp0 | grep -q FWVER || ( cat $PRN_FRM > /dev/usb/lp0 && echo "HP LJ 1018: Firmware loaded" >>
    else
        echo "HP LJ 1018: Printer OffLine" >> $LOG
    fi
fi

ipkg install p910nd

И конфигурируем.