Add short delay to dialer and fix umts/gprs dns work arround

This commit is contained in:
Arne Fitzenreiter
2009-05-14 21:59:34 +02:00
parent 9284fcc5c9
commit 5c237109bd
2 changed files with 9 additions and 5 deletions

View File

@@ -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)

View File

@@ -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