mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 18:03:06 +02:00
dhcpcd.exe geschrieben.
asterisk.cgis geloescht. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@787 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
32
src/initscripts/init.d/networking/dhcpcd.exe
Normal file
32
src/initscripts/init.d/networking/dhcpcd.exe
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
########################################################################
|
||||
# Begin
|
||||
#
|
||||
# Description : DHCP Client Script
|
||||
#
|
||||
# Authors : Michael Tremer - mitch@ipfire.org
|
||||
#
|
||||
# Version : 01.00
|
||||
#
|
||||
# Notes :
|
||||
#
|
||||
########################################################################
|
||||
|
||||
eval $(/usr/local/bin/readhash "$1")
|
||||
case "$2" in
|
||||
up)
|
||||
logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been configured with old IP=${IPADDR}"
|
||||
touch /var/ipfire/red/active
|
||||
;;
|
||||
new)
|
||||
logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been configured with new IP=${IPADDR}"
|
||||
[ -e "/var/ipfire/red/active" ] || touch /var/ipfire/red/active
|
||||
fi
|
||||
;;
|
||||
down)
|
||||
logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been brought down"
|
||||
rm -f /var/ipfire/red/active
|
||||
;;
|
||||
esac
|
||||
|
||||
# End
|
||||
Reference in New Issue
Block a user