From 58e9b9dc29759ad26c214edd975783c931c3391a Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 25 Aug 2008 20:31:08 +0200 Subject: [PATCH] Change networking/red not set ip to 1.1.1.1 at PPPoE connection --- src/initscripts/init.d/networking/red | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/initscripts/init.d/networking/red b/src/initscripts/init.d/networking/red index 57981a7e2..20e052a35 100644 --- a/src/initscripts/init.d/networking/red +++ b/src/initscripts/init.d/networking/red @@ -194,7 +194,6 @@ case "${1}" in boot_mesg "Createing ATM-Bridge as $PPP_NIC ..." br2684ctl -c0 -e${ENCAP} -a0.${VPI}.${VCI} >/dev/null 2>&1 & sleep 1 - ip link set ${PPP_NIC} up TYPE="pppoe" fi if [ "$TYPE" == "pppoe" ]; then @@ -204,7 +203,8 @@ case "${1}" in exit 0 fi boot_mesg "Bringing up the PPPoE interface on $PPP_NIC ..." - ip addr add 1.1.1.1/24 broadcast 1.1.1.255 dev $PPP_NIC + ip addr flush dev $PPP_NIC >/dev/null 2>&1 + ip link set ${PPP_NIC} up else boot_mesg "Bringing up the PPP via ${TYPE} on ${COMPORT}..." fi @@ -381,7 +381,6 @@ case "${1}" in rm -f /var/ipfire/red/keepconnected killall -w -s TERM /usr/sbin/pppd 2>/dev/null evaluate_retval - ip addr del 1.1.1.1/24 broadcast 1.1.1.255 dev ${DEVICE} >/dev/null 2>&1 fi if [ "$DEVICE" != "${GREEN_DEV}" ] && [ "$DEVICE" != "" ]; then -- 2.39.2