I have a script which should be executed when a certain USB device is inserted into the machine. This script is handled by a udev rule. However, this script is often run too early (no writable fs yet) if the USB device is left inserted when booting the system. Is there a way I can defer this script with the aid of upstart until the system is system is up?

What about:

udev rule: initctl emit device_inserted

upstart task:
        start on device_inserted and stopped rc

^^ Would this work? I mean since the device_inserted emit will come much before rc has stopped? I'm uncertain how the combining of events such as these actually behave.

Regards,
Svein Seldal


--
upstart-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Reply via email to