]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/init.d/networking/dhcpcd.exe
Wieder einmal die Netzwerkscripts.
[ipfire-2.x.git] / src / initscripts / init.d / networking / dhcpcd.exe
index dca1b8339965e8f0d216cb5b3e6b7ebe782f8450..f8331308c76b3f7cd0f086508df2af532e1659e4 100644 (file)
 #
 ########################################################################
 
+. /etc/sysconfig/rc 
+. ${rc_functions}
+
 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
+               run_subdir ${rc_base}/init.d/networking/red.up/
                ;;
        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
+               run_subdir ${rc_base}/init.d/networking/red.down/
+               run_subdir ${rc_base}/init.d/networking/red.up/
                ;;
        down)
                logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been brought down"
                rm -f /var/ipfire/red/active
+               run_subdir ${rc_base}/init.d/networking/red.down/
                ;;
 esac