Assembla home | Assembla project page
 

Changeset 57

Show
Ignore:
Timestamp:
09/04/07 21:15:26 (1 year ago)
Author:
evdowizard
Message:

fixed broken ifup.3g, simplified opendns variable

Files:

Legend:

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

    r56 r57  
    55 
    66# make sure that interface isn't already up 
    7 if [ "$(cat /proc/diag/led/3g_* | grep 1 | wc -l)" != "0" ]; then 
    8         logger -p user.notice -t ifup.3g "interface is already connected, or it is connecting
    9         exit 1  
     7if [ -e "/var/run/ppp-wwan.pid" ]; then 
     8        logger -p user.notice -t ifup.3g "interface is already up
     9        exit 1 
    1010fi 
    1111 
     
    7474apn="'AT'" 
    7575[ -n "$wwan_apn" ] && apn="'AT+CGDCONT=1,\"IP\",\"$(nvram get wwan_apn)\"'" 
    76 opendns=`cat /etc/config/webif | grep opendns | grep 1 | wc -l
     76opendns=`cat /etc/config/webif | grep opendns | grep -c 1
    7777if [ $opendns = "0" ]; then 
    7878dns="usepeerdns"