DD-WRT v3.0-r30949 на Asus rt-ac68u + принтер hp102

Post new topic   Reply to topic    DD-WRT Forum Index -> Использование и установка DD-WRT
Author Message
taishigo
DD-WRT Novice


Joined: 04 Jan 2017
Posts: 1

PostPosted: Wed Jan 04, 2017 17:10    Post subject: DD-WRT v3.0-r30949 на Asus rt-ac68u + принтер hp102 Reply with quote
Уважаемые здравствуйте.

Установил dd-wrt v3.0 на Asus RT-AC68U. В порт usb 2.0 подключил принтер hp1020. Факты включения и выключения принтера видны через dmesg | grep usb

включение...
usb 1-2: new high-speed USB device number 5 using ehci-pci
usblp 1-2:1.0: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17

выключение...
usb 1-2: USB disconnect, device number 5
usblp0: removed


Для правильной работы принтеру при каждом включении нужно загружать файл sihp1020.dl.
Для этого в папке /jffs сохранил скрипт hp1020.sh:

if [ $PRODUCT = "3f0/2b17/100" ]; then
if [ $ACTION = "add" ]; then
sleep 7
cat /jffs/sihp1020.dl > /dev/lp0
fi
fi

Подскажите пожалуйста куда нужно прописать этот скрипт, чтобы он выполнялся автоматически при включении принтера?
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Использование и установка DD-WRT All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum