summaryrefslogtreecommitdiff
path: root/network/ifplugd/README
blob: a5e13017c49f8726b875855729c0f6d79a74d6fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ifplugd is a Linux daemon that can monitor network interfaces
for a change in state (i.e. up or down) then trigger custom
actions or scripts based on the change.

This could be useful in a number of situations.
For example where the network is configured manually
(no NetworkManager etc), and you wish to reconfigure your
network settings when an ethernet cable is connected 
and then deconfigure those same settings when the cable is
disconnected.

To change which interfaces are monitored by default, and
the general start up options, edit "/etc/ifplugd/ifplugd.conf".
Actions can be added/changed by editing "/etc/ifplugd/ifplugd.action".

To make ifplugd auto start on boot.
First run "chmod 644 /etc/rc.d/rc.ifplugd"
Then add the following to the end of your "/etc/rc.local" file:

if [ -x /etc/rc.d/rc.ifplugd ]; then
   sh /etc/rc.d/rc.ifplugd start || /bin/true
fi