]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/net/ifdown
Red active wurde nur bei pptp erstellt -> gefixt
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / net / ifdown
index 6b31c74d42941947c0b59195b6c862f0a0ac4220..4440480e89aef0925e966e21b480001a42697ab5 100644 (file)
@@ -35,15 +35,30 @@ then
                NETADDRESS=${GREEN_NETADDRESS} BROADCAST=${GREEN_BROADCAST} \
                /etc/rc.d/init.d/net/common/ipv4-static ${GREEN_DEV} down
                
+        if [ "${ENABLE_GREEN}" == "on" ]; then
+               boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+               /etc/rc.d/init.d/net/common/dhcpd ${GREEN_DEV} down             
+   fi
+               
        elif [ "$name" == "blue" ]; then
                NAME=${name} ADDRESS=${BLUE_ADDRESS} NETMASK=${BLUE_NETMASK}\
                NETADDRESS=${BLUE_NETADDRESS} BROADCAST=${BLUE_BROADCAST} \
                /etc/rc.d/init.d/net/common/ipv4-static ${BLUE_DEV} down
                
+        if [ "${ENABLE_BLUE}" == "on" ]; then
+               boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+               /etc/rc.d/init.d/net/common/dhcpd ${BLUE_DEV} down              
+   fi 
+               
        elif [ "$name" == "orange" ]; then
                NAME=${name} ADDRESS=${ORANGE_ADDRESS} NETMASK=${ORANGE_NETMASK}\
                NETADDRESS=${ORANGE_NETADDRESS} BROADCAST=${ORANGE_BROADCAST} \
                /etc/rc.d/init.d/net/common/ipv4-static ${ORANGE_DEV} down
+               
+        if [ "${ENABLE_ORANGE}" == "on" ]; then
+               boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+               /etc/rc.d/init.d/net/common/dhcpd ${ORANGE_DEV} down            
+   fi
 
        elif [ "$name" == "red" ]; then
                if [ "${RED_TYPE}" == "PPPOE" ]; then