问题原因:
经查证发现HP1020存在两个特殊设计:
- 专为Windows设计的驱动架构,Linux支持不完善
无内置闪存,每次开机需通过/dev/usb/lp0接口写入固件- 解决方法:
- 方法1、打印机插到Windows电脑上使用一次在插到OpenWrt的USB口上即可,但是断电之后又无法使用
- 方法2、拷贝sihp1020.dl文件到openwrt的/etc目录
最终解决方法:
编写hp1020.sh文件
vi /etc/hp1020.sh
cat /etc/sihp1020.dl >>/dev/usb/lp0
chmod +x /etc/hp1020.sh
bash /etc/hp1020.sh启动项-本地启动脚本 把启动项加进去OpenWRT的即可
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
sleep 5
bash /etc/hp1020.sh
exit 0
已有 124 位网友参与,快来吐槽:
发表评论