Changeset dd9e9b0 in freewrt
- Timestamp:
- Oct 19, 2006, 3:34:50 PM (19 years ago)
- Children:
- 5876cdc
- Parents:
- 651b93e
- Location:
- package/ppp/files
- Files:
-
- 1 added
- 1 deleted
- 1 edited
-
etc/ppp/ip-down.d/umts (added)
-
etc/ppp/ip-up.d/if-rename (deleted)
-
ppp.pre-up (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
package/ppp/files/ppp.pre-up
r651b93e rdd9e9b0 33 33 [ -f /etc/comgt/setmode.comgt ] || exit 0 34 34 35 # set UMTS-LED to green (bit 3) 36 LED=$(cat /proc/sys/diag) 37 echo $((LED | 8)) > /proc/sys/diag 38 35 39 # TODO/FIXME: replace this by an comgt script 36 40 sed " 37 41 s/#UMTS_APN#/$IF_UMTS_APN/ 38 " < /etc/chatscripts/templates/umts > /etc/chatscripts/umts.chat 42 " < /etc/chatscripts/templates/umts > /etc/chatscripts/umts.chat || ERROR=1 39 43 40 44 # set pincode 41 PINCODE="$IF_UMTS_PINCODE" comgt -d $IF_PPP_DEVICE -s /etc/comgt/setpin.comgt 45 PINCODE="$IF_UMTS_PINCODE" comgt -d $IF_PPP_DEVICE -s /etc/comgt/setpin.comgt || ERROR=1 42 46 case "$IF_UMTS_MODE" in 43 47 grps_only) MODE=0 ;; … … 45 49 umts_first|*) MODE=2 ;; 46 50 esac 47 MODE="AT_OPSYS=$MODE" comgt -d $IF_PPP_DEVICE -s /etc/comgt/setmode.comgt 51 MODE="AT_OPSYS=$MODE" comgt -d $IF_PPP_DEVICE -s /etc/comgt/setmode.comgt || ERROR=1 52 if [ "$ERROR" == "1" ]; then 53 echo "$LED" > /proc/sys/diag 54 exit 1 55 fi 48 56 ;; 49 57 esac
Note:
See TracChangeset
for help on using the changeset viewer.
