Auto Load USB Printer Firmware When Printer Turned On - Linux
I have added the following command to the rc.local file in Puppy Linux which runs every time Puppy Linux boots up:
cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0
This works fine if the printer is on when I boot into Puppy Linux. If the printer is not on when I boot up then I have to run the code in a shell before the printer will print.
This is OK for me but my family members need to be able to just turn on the printer any time and have it print. They do not even know what a shell is and cannot be expected to issue shell commands to get the printer to work.
My question is this:
Can I put the above code in a script that will execute every time the USB printer is turned on?
Knowing the kind of operating system that Linux is, I am sure that there is a way to do this. I'm just not skilled enough to know how to do it.
Any help would be much appreciated.
bdika



