Assembla home | Assembla project page
 

Changeset 64

Show
Ignore:
Timestamp:
09/08/07 19:18:49 (3 years ago)
Author:
evdowizard
Message:

polished support for international networks, added ifup.3g errors to 3g
status page log0

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/imagebuilder/files/usr/lib/webif/3g-networks.csv

    r62 r64  
    2525NZ_Vodafone:NZ Vodafone:::www.vodafone.net.nz:*99***1#:gsm 
    2626PT_Vodafone:PT Vodafone:vodafone:vodafone:internet.vodafone.pt:*99***1#:gsm 
     27SA_Mobily:SA Mobily:::web2:*99#:gsm 
    2728SE_Vodafone:SE Vodafone:::internet.vodafone.net:*99***1#:gsm 
    2829SI_SiMobil:SI SiMobil:simobil:internet:internet.simobil.si:*99***1#:gsm 
  • trunk/imagebuilder/files/www/cgi-bin/webif/network-wan-lan.sh

    r62 r64  
    188188                                empty "$FORM_wwan_redial" || save_setting network wwan_redial "$FORM_wwan_redial" 
    189189                                empty "$FORM_wwan_idletime" || save_setting network wwan_idletime "$FORM_wwan_idletime" 
    190                                 empty "$FORM_wwan_pincode" || save_setting network wwan_pincode "$FORM_wwan_pincode" 
    191  
    192                                 # if blank, set idle time to 10 mins 
    193                                 empty "$FORM_wwan_idletime" && save_setting network wwan_idletime "10" 
    194  
    195                                 # if demand mode is set, disable keepalive 
    196                                 if equal "$FORM_wwan_redial" "demand"; then 
    197                                         save_setting network wwan_keepalive "0" 
    198                                 else 
    199                                         save_setting network wwan_keepalive "$FORM_wwan_keepalive" 
    200                                 fi 
     190 
     191                                # redial modes 
     192                                case "$FORM_wwan_redial" in 
     193                                       demand) 
     194                                                save_setting network wwan_keepalive "0" 
     195                                               empty "$FORM_wwan_idletime" && save_setting network wwan_idletime "10" 
     196                                       ;; 
     197                                        *) 
     198                                               save_setting network wwan_keepalive "$FORM_wwan_keepalive" 
     199                                        ;; 
     200                                esac 
    201201 
    202202                                # These can be blank 
     
    204204                                save_setting network wwan_passwd "$FORM_wwan_passwd" 
    205205                                save_setting network wwan_username "$FORM_wwan_username" 
    206                                 save_setting network wwan_apn "$FORM_wwan_apn" 
    207                                 if ! equal "$FORM_wwan_type" "cdma"; then 
     206                                if equal "$FORM_wwan_type" "gsm"; then 
    208207                                        save_setting network wwan_service "$FORM_wwan_service" 
     208                                        save_setting network wwan_apn "$FORM_wwan_apn" 
     209                                        save_setting network wwan_pincode "$FORM_wwan_pincode" 
    209210                                fi 
    210211                                save_setting network wwan_ifname "ppp0" 
     
    318319 
    319320        v = isset('wwan_type', 'gsm'); 
     321        set_visible('field_wwan_apn', v); 
    320322        set_visible('field_wwan_service', v); 
    321323        set_visible('field_wwan_pincode', v); 
     
    354356helptext|Helptext Idle Time#The number of minutes without internet traffic that the router should wait before disconnecting from the Internet (Connect on Demand only) 
    355357field|@TR<<Utilize Keepalive>>|field_wwan_keepalive|hidden 
    356 radio|keepalive|$FORM_wwan_keepalive|1|@TR<<Yes>> 
    357 radio|keepalive|$FORM_wwan_keepalive|0|@TR<<No>> 
     358radio|wwan_keepalive|$FORM_wwan_keepalive|1|@TR<<Yes>> 
     359radio|wwan_keepalive|$FORM_wwan_keepalive|0|@TR<<No>> 
    358360helpitem|Keepalive 
    359361helptext|Helptext Keepalive#The keepalive daemon insures that the internet is always connected and responding. Keepalive cannot be used with Connect on Demand mode. 
     
    366368helpitem|Network 
    367369helptext|Helptext Network#Select a mobile network preset from the list. Some fields may be blank depending on the provider. If your network is not listed, you may be able enter in the mobile network settings manually. 
     370onchange|modechange 
     371field|@TR<<Network Type>>|field_wwan_type 
     372select|wwan_type|$FORM_wwan_type 
     373option|cdma|@TR<<CDMA Based>> 
     374option|gsm|@TR<<GSM Based>> 
    368375field|@TR<<Username>>|field_wwan_username 
    369376text|wwan_username|$FORM_wwan_username 
    370377field|@TR<<Password>>|field_wwan_passwd 
    371378text|wwan_passwd|$FORM_wwan_passwd 
    372 field|@TR<<APN Name>>|field_wwan_apn 
    373 text|wwan_apn|$FORM_wwan_apn 
    374379field|@TR<<Dialup Number>>|field_wwan_num 
    375380text|wwan_num|$FORM_wwan_num 
    376 field|@TR<<3G Type>>|field_wwan_type|hidden 
    377 text|wwan_type|$FORM_wwan_type 
    378 field| 
    379 string|<br> 
    380 field|@TR<<Connection Service>>|field_wwan_service|hidden 
    381 select|wwan_service|$FORM_wwan_service 
    382 option|umts_first|@TR<<3G first>> 
    383 option|umts_only|@TR<<3G only>> 
    384 option|gprs_only|@TR<<2G only>> 
     381field|@TR<<APN Name>>|field_wwan_apn|hidden 
     382text|wwan_apn|$FORM_wwan_apn 
    385383field|@TR<<PIN Code>>|field_wwan_pincode|hidden 
    386384password|wwan_pincode|$FORM_wwan_pincode 
     385field|@TR<<Preferred Service>>|field_wwan_service|hidden 
     386select|wwan_service|$FORM_wwan_service 
     387option|umts_first|@TR<<Automatic>> 
     388option|umts_only|@TR<<3G Only>> 
     389option|gprs_only|@TR<<2G Only>> 
    387390end_form 
    388391 
  • trunk/imagebuilder/files/www/cgi-bin/webif/status-wwaninfo.sh

    r54 r64  
    115115string|<div style="width: 100%; height: 150px; overflow: auto; padding: 4px; font-size: 0.8em"><pre> 
    116116EOF 
    117 logread | egrep "(pppd|chat)" | sort -r | sed ' s/\&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g' 
     117logread | egrep "(pppd|chat|ifup.3g)" | sort -r | sed ' s/\&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g' 
    118118echo 
    119119display_form <<EOF