]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/init.d/networking/dhcpcd.exe
2 ########################################################################
5 # Description : DHCP Client Script
7 # Authors : Michael Tremer - mitch@ipfire.org
13 ########################################################################
18 eval $
(/usr
/local
/bin
/readhash
"$1")
21 logger
-p local0.info
-t dhcpcd.exe
[$$
] "${INTERFACE} has been configured with old IP=${IPADDR}"
22 touch /var
/ipfire
/red
/active
23 run_subdir
${rc_base}/init.d
/networking
/red.up
/
26 logger
-p local0.info
-t dhcpcd.exe
[$$
] "${INTERFACE} has been configured with new IP=${IPADDR}"
27 [ -e "/var/ipfire/red/active" ] ||
touch /var
/ipfire
/red
/active
28 run_subdir
${rc_base}/init.d
/networking
/red.down
/
29 run_subdir
${rc_base}/init.d
/networking
/red.up
/
32 logger
-p local0.info
-t dhcpcd.exe
[$$
] "${INTERFACE} has been brought down"
33 rm -f /var
/ipfire
/red
/active
34 run_subdir
${rc_base}/init.d
/networking
/red.down
/