I am trying to update the CUPS daemon on my QNAP NAS, which runs a flavor of *nix. The entire OS system is loaded on a RAMDISK when the NAS boots so I've come up with a script that runs at start-up and injects my own coding. Now my problem is that I need to trigger the kernel action so that the usb printer driver calls the cupsd.sh script.
According to the manufacturer:
We modified the "USB Printer Device Class driver" of Linux kernel to issue a signal/message when plug-in/out a USB printer. After the daemon, picd get signal/message, it will call cupsd.sh to add_printer/del_printer .
Any ideas how I can accomplish this?