Trigger script with ethernet cable
Posted: Wed Jun 04, 2014 12:52 pm
Hi everyone, everything is in the title. I don't know if its possible but I would like to see my bash script running when I plug in an ethernet cable. Thanks for you answer!
A small, affordable computer with free resources to help people learn, make things, and have fun
This daemon is (probably) already running on you pi/etc/ifplugd/ifplugd.action: this is the script which will be called by the daemon whenever the state of the interface changes. It takes two areguments: the first is the interface name (eg. eth0), the second either "up" or "down".