From: Arne Fitzenreiter Date: Thu, 14 May 2009 19:59:34 +0000 (+0200) Subject: Add short delay to dialer and fix umts/gprs dns work arround X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=5c237109bd8608b68f41956cfc0e103671571bc4 Add short delay to dialer and fix umts/gprs dns work arround --- diff --git a/src/ppp/dialer b/src/ppp/dialer index 208e3b967..c8aad46e7 100644 --- a/src/ppp/dialer +++ b/src/ppp/dialer @@ -88,8 +88,9 @@ my $com = "/usr/sbin/chat -v -r /var/log/connect.log \ OK '$speaker' \ OK '$add_at2' \ '' '$add_at3' \ + '' 'sleep 5' \ TIMEOUT '$modemsettings{'TIMEOUT'}' \ - OK '${dial}${telephone}' \ + OK '\d${dial}${telephone}' \ CONNECT '${btfudge}' "; if ($loginscript) diff --git a/src/ppp/ip-up b/src/ppp/ip-up index 5c4569921..ab01ad38b 100644 --- a/src/ppp/ip-up +++ b/src/ppp/ip-up @@ -32,12 +32,15 @@ if [ "$DNS" == "Automatic" ]; then echo -n "$MS_DNS1" > /var/ipfire/red/dns1 echo -n "$MS_DNS2" > /var/ipfire/red/dns2 else - if [ "$PRIMARY_DNS" != "10.11.12.13" || "$SECONDARY_DNS" != "10.11.12.14" ]; then - echo -n "$PRIMARY_DNS" > /var/ipfire/red/dns1 - echo -n "$SECONDARY_DNS" > /var/ipfire/red/dns2 - else + if [ "$PRIMARY_DNS" == "10.11.12.13" ]; then echo -n "$DNS1" > /var/ipfire/red/dns1 + else + echo -n "$PRIMARY_DNS" > /var/ipfire/red/dns1 + fi + if [ "$SECONDARY_DNS" == "10.11.12.14" ]; then echo -n "$DNS2" > /var/ipfire/red/dns2 + else + echo -n "$SECONDARY_DNS" > /var/ipfire/red/dns2 fi fi else