]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/initscripts/init.d/networking/dhcpcd.exe
dhcpcd.exe geschrieben.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / networking / dhcpcd.exe
CommitLineData
1393a0c8
MT
1#!/bin/sh
2########################################################################
3# Begin
4#
5# Description : DHCP Client Script
6#
7# Authors : Michael Tremer - mitch@ipfire.org
8#
9# Version : 01.00
10#
11# Notes :
12#
13########################################################################
14
15eval $(/usr/local/bin/readhash "$1")
16case "$2" in
17 up)
18 logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been configured with old IP=${IPADDR}"
19 touch /var/ipfire/red/active
20 ;;
21 new)
22 logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been configured with new IP=${IPADDR}"
23 [ -e "/var/ipfire/red/active" ] || touch /var/ipfire/red/active
24 fi
25 ;;
26 down)
27 logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been brought down"
28 rm -f /var/ipfire/red/active
29 ;;
30esac
31
32# End