Changeset 64
- Timestamp:
- 09/08/07 19:18:49 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/imagebuilder/files/usr/lib/webif/3g-networks.csv
r62 r64 25 25 NZ_Vodafone:NZ Vodafone:::www.vodafone.net.nz:*99***1#:gsm 26 26 PT_Vodafone:PT Vodafone:vodafone:vodafone:internet.vodafone.pt:*99***1#:gsm 27 SA_Mobily:SA Mobily:::web2:*99#:gsm 27 28 SE_Vodafone:SE Vodafone:::internet.vodafone.net:*99***1#:gsm 28 29 SI_SiMobil:SI SiMobil:simobil:internet:internet.simobil.si:*99***1#:gsm trunk/imagebuilder/files/www/cgi-bin/webif/network-wan-lan.sh
r62 r64 188 188 empty "$FORM_wwan_redial" || save_setting network wwan_redial "$FORM_wwan_redial" 189 189 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 mins193 empty "$FORM_wwan_idletime" && save_setting network wwan_idletime "10"194 195 # if demand mode is set, disable keepalive196 if equal "$FORM_wwan_redial" "demand"; then197 save_setting network wwan_keepalive "0"198 else199 save_setting network wwan_keepalive "$FORM_wwan_keepalive"200 fi190 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 201 201 202 202 # These can be blank … … 204 204 save_setting network wwan_passwd "$FORM_wwan_passwd" 205 205 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 208 207 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" 209 210 fi 210 211 save_setting network wwan_ifname "ppp0" … … 318 319 319 320 v = isset('wwan_type', 'gsm'); 321 set_visible('field_wwan_apn', v); 320 322 set_visible('field_wwan_service', v); 321 323 set_visible('field_wwan_pincode', v); … … 354 356 helptext|Helptext Idle Time#The number of minutes without internet traffic that the router should wait before disconnecting from the Internet (Connect on Demand only) 355 357 field|@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>>358 radio|wwan_keepalive|$FORM_wwan_keepalive|1|@TR<<Yes>> 359 radio|wwan_keepalive|$FORM_wwan_keepalive|0|@TR<<No>> 358 360 helpitem|Keepalive 359 361 helptext|Helptext Keepalive#The keepalive daemon insures that the internet is always connected and responding. Keepalive cannot be used with Connect on Demand mode. … … 366 368 helpitem|Network 367 369 helptext|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. 370 onchange|modechange 371 field|@TR<<Network Type>>|field_wwan_type 372 select|wwan_type|$FORM_wwan_type 373 option|cdma|@TR<<CDMA Based>> 374 option|gsm|@TR<<GSM Based>> 368 375 field|@TR<<Username>>|field_wwan_username 369 376 text|wwan_username|$FORM_wwan_username 370 377 field|@TR<<Password>>|field_wwan_passwd 371 378 text|wwan_passwd|$FORM_wwan_passwd 372 field|@TR<<APN Name>>|field_wwan_apn373 text|wwan_apn|$FORM_wwan_apn374 379 field|@TR<<Dialup Number>>|field_wwan_num 375 380 text|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>> 381 field|@TR<<APN Name>>|field_wwan_apn|hidden 382 text|wwan_apn|$FORM_wwan_apn 385 383 field|@TR<<PIN Code>>|field_wwan_pincode|hidden 386 384 password|wwan_pincode|$FORM_wwan_pincode 385 field|@TR<<Preferred Service>>|field_wwan_service|hidden 386 select|wwan_service|$FORM_wwan_service 387 option|umts_first|@TR<<Automatic>> 388 option|umts_only|@TR<<3G Only>> 389 option|gprs_only|@TR<<2G Only>> 387 390 end_form 388 391 trunk/imagebuilder/files/www/cgi-bin/webif/status-wwaninfo.sh
r54 r64 115 115 string|<div style="width: 100%; height: 150px; overflow: auto; padding: 4px; font-size: 0.8em"><pre> 116 116 EOF 117 logread | egrep "(pppd|chat )" | sort -r | sed ' s/\&/\&/g; s/</\</g; s/>/\>/g'117 logread | egrep "(pppd|chat|ifup.3g)" | sort -r | sed ' s/\&/\&/g; s/</\</g; s/>/\>/g' 118 118 echo 119 119 display_form <<EOF