X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fppp%2Fip-up;h=b059a297d1cf2855e06e5fa8bf585be8196f29e5;hb=fb6446d2920bf763b9fa83062157aa103a3d24a7;hp=02f60a6ba97e7491af741efd482c678d52b96754;hpb=f3b4e6464130b949acace7e837c62d282582c63e;p=ipfire-2.x.git diff --git a/src/ppp/ip-up b/src/ppp/ip-up index 02f60a6ba9..b059a297d1 100644 --- a/src/ppp/ip-up +++ b/src/ppp/ip-up @@ -47,12 +47,13 @@ else echo -n "$DNS1" > /var/ipfire/red/dns1 echo -n "$DNS2" > /var/ipfire/red/dns2 fi -7 + echo -n "$1" > /var/ipfire/red/iface echo -n "$4" > /var/ipfire/red/local-ipaddress echo -n "$5" > /var/ipfire/red/remote-ipaddress touch /var/ipfire/red/active +/sbin/ip route replace default via ${IPREMOTE} dev ppp0 run_subdir ${rc_base}/init.d/networking/red.up/ #Check if gateway has answerd to ping, if not replace with ping.ipfire.org @@ -73,11 +74,10 @@ else echo "$FIRE gateway" >> /tmp/hosts else #DNS lookup failed use direct ip - echo "85.88.28.125 gateway" >> /tmp/hosts + echo "81.3.27.38 gateway" >> /tmp/hosts fi fi mv /tmp/hosts /etc/hosts [ -e "/var/ipfire/ppp/nobeeps" ] || /etc/rc.d/init.d/beep up -/sbin/ip route replace default via ${IPREMOTE}