Assembla home | Assembla project page
 

Changeset 41

Show
Ignore:
Timestamp:
09/02/07 03:47:21 (1 year ago)
Author:
evdowizard
Message:

fix ifup.3g authentication issue, added opendns support for 3g

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/imagebuilder/files/sbin/ifup.3g

    r40 r41  
    6969num=$(nvram get wwan_num) 
    7070apn="'AT'" 
     71 
     72# opendns 
     73opendns=`cat /etc/config/webif | grep opendns | awk -F '"' '{ print $2 }'` 
     74if [ "$opendns" = "0" ]; then 
     75dns="usepeerdns" 
     76fi 
     77 
    7178[ "$(nvram get wwan_apn)" = "" ] || apn="'AT+CGDCONT=1,\"IP\",\"$(nvram get wwan_apn)\"'" 
    7279if [ "$(nvram get wwan_redial)" = "demand" ]; then 
     
    102109crtscts \ 
    103110noipdefault \ 
    104 usepeerdns \ 
    105111defaultroute \ 
    106112replacedefaultroute \ 
     113lcp-echo-interval 0 \ 
     114connect-delay 3000 \ 
     115user \""$username"\" \ 
     116password \""$password"\" \ 
     117$demand \ 
     118$dns \ 
     119${mtu:+mtu $mtu mru $mtu} \ 
    107120ipparam "$type" \ 
    108121linkname "$type" \ 
    109 user "$username" \ 
    110 password "$password" \ 
    111 ${mtu:+mtu $mtu mru $mtu} \ 
    112 $demand \ 
    113 lcp-echo-interval 0 \ 
    114 connect-delay 3000 \ 
    115122connect "export NUM=$num; export APN=$apn; /usr/sbin/chat -v -E -t3 -f $chatscript" 
    116123 
  • trunk/imagebuilder/files/www/cgi-bin/webif/network-wan-lan.sh

    r17 r41  
    292292 
    293293        v = isset('wwan_proto', '3g'); 
     294        set_visible('opendns_form', v); 
    294295        set_visible('wwan_network_settings', v); 
    295296        set_visible('wwan_keepalive_settings', v && !isset('wwan_redial', 'demand'));