Hi all,<br>
<br>
I'm writing an Upstart script which would run in the event a network
cable is connected (i.e., the network interface get's an IP address.)
However, I am having trouble figuring out which event I should use for
the 'start on' directive.<br>
<br>
Output of 'initctl list | grep network' shows the following networking related events: <br>
<br>
network-manager start/running, process 843<br>
network-interface (lo) start/running<br>
network-interface (eth0) start/running<br>
network-interface (wlan0) start/running<br>
network-interface-security start/running<br>
networking stop/waiting<br>
<br>
network-manager starts at boot and doesn't change after that if the
cable is disconnected so taht won't work. Also the network-interface*
events stay started once the system is booted. <br>
<br>
The description for 'networking' states "This task causes virtual
network devices that do not have an associated kernel object to be
started on boot." So I'm not sure that is an option. <br>
<br>
I'm thinking perhaps there is a udevmonitor event I can use, but again, I'm not sure which one? <br>
<br>
Does anyone have any experience with building scripts like this?<br>