]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/net/ifup
Noch ein Paar Komfortfunktionen.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / net / ifup
index 50dccc7907ce2127ccb67b9d303f6eef5b080cb1..e9ff1d67bc3f82c9e4f002569c7794146fa5c538 100644 (file)
@@ -24,6 +24,16 @@ boot_mesg_flush
 (
        eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
 
+       if [ "$name" == "green" ]; then
+               DEVICE="${GREEN_DEV}"
+       elif [ "$name" == "blue" ]; then
+               DEVICE="${BLUE_DEV}"
+       elif [ "$name" == "orange" ]; then
+               DEVICE="${ORANGE_DEV}"
+       elif [ "$name" == "red" ]; then
+               DEVICE="${RED_DEV}"
+       fi
+
        # Check if an interface is there...
        if ip link show ${DEVICE} > /dev/null 2>&1; then
                link_status=`ip link show ${DEVICE} 2> /dev/null`
@@ -62,6 +72,7 @@ boot_mesg_flush
                        echo
                elif [ "${RED_TYPE}" == "DHCP" ]; then
                        NAME=${name} DHCP_HOSTNAME=${RED_DHCP_HOSTNAME} \
+                       DNS1=${DNS1} DNS2=${DNS2} \
                        PRINTIP=yes PRINTALL=yes \
                        /etc/rc.d/init.d/net/common/dhcpcd ${RED_DEV} up
                elif [ "${RED_TYPE}" == "STATIC" ]; then
@@ -70,7 +81,11 @@ boot_mesg_flush
                        DNS1=${DNS1} DNS2=${DNS2} GATEWAY=${DEFAULT_GATEWAY}
                        /etc/rc.d/init.d/net/common/ipv4-static ${RED_DEV} up
                fi
-       fi
+               
+               /usr/local/bin/dialctrl.pl up
+               /etc/rc.d/init.d/net/red/update
+fi
+
 )
 
 # End $network_devices/ifup