]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Red active wurde nur bei pptp erstellt -> gefixt
authormaniacikarus <maniacikarus@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 9 Jun 2007 10:02:53 +0000 (10:02 +0000)
committermaniacikarus <maniacikarus@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 9 Jun 2007 10:02:53 +0000 (10:02 +0000)
dhcp bei ipup und ifdown eingefuegt

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@619 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

src/initscripts/init.d/net/ifdown
src/initscripts/init.d/net/ifup
src/initscripts/init.d/net/red/update

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
index eca4360a6834212d05f3795c4d95411d6c4e7678..3866a04d79bc16d220d49107d052e715f8dab181 100644 (file)
@@ -24,6 +24,7 @@ boot_mesg_flush
 
 (
        eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
+       eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
 
        if [ "$name" == "green" ]; then
                DEVICE="${GREEN_DEV}"
@@ -62,17 +63,32 @@ boot_mesg_flush
                NETADDRESS=${GREEN_NETADDRESS} BROADCAST=${GREEN_BROADCAST} \
                /etc/rc.d/init.d/net/common/ipv4-static ${GREEN_DEV} up
         fi
+        
+        if [ "${ENABLE_GREEN}" == "on" ]; then
+               boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+               /etc/rc.d/init.d/net/common/dhcpd ${GREEN_DEV} up               
+   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} up
                
+        if [ "${ENABLE_BLUE}" == "on" ]; then
+               boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+               /etc/rc.d/init.d/net/common/dhcpd ${BLUE_DEV} up                
+   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} up
                
+        if [ "${ENABLE_ORANGE}" == "on" ]; then
+               boot_mesg "Bringing up dhcpd on device ${DEVICE}."
+               /etc/rc.d/init.d/net/common/dhcpd ${ORANGE_DEV} up              
+   fi 
+               
        elif [ "$name" == "red" ]; then
                if [ "${RED_TYPE}" == "PPPOE" ]; then
                        NAME=${name} /etc/rc.d/init.d/net/red/pppoe ${RED_DEV} up
index 7c06c3df149a8f0ac332244566e9ac8d3b4e909b..2bb411f9c2b29b48e8fdce8453b64e325012cf07 100644 (file)
@@ -70,9 +70,7 @@ if ( echo $0 | /bin/grep -q 'dhcpcd.exe' ); then
        case "$2" in
         up)
                logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been configured with old IP=${IPADDR}"
-               if [ "$RED_TYPE" != 'PPTP' ]; then
                        touch /var/ipfire/red/active
-               fi
                ;;
         new)   
                logger -p local0.info -t dhcpcd.exe[$$] "${INTERFACE} has been configured with new IP=${IPADDR}"
@@ -87,9 +85,7 @@ if ( echo $0 | /bin/grep -q 'dhcpcd.exe' ); then
                        logger -p local0.info -t red[$$] "unlocking from $$"
                        exit 0
                else
-                       if [ "$RED_TYPE" != 'PPTP' ]; then
                                touch /var/ipfire/red/active
-                       fi
                fi
                ;;
         down)