diff options
author | Rod Whitby <rod@whitby.id.au> | 2007-09-09 11:57:42 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2007-09-09 11:57:42 +0000 |
commit | b3f27b8cc1431aef66ee32f717b55ad590fe0098 (patch) | |
tree | 72e12226096ed91d43c5913cc7ecef88b241539f /packages/gsm | |
parent | d6833d3ab6f6b0c4078c9d0c46cb9d5dd0faea58 (diff) |
gsm: Fix default file and init script. GSM_RES was missing, and the tests for null values needed quotes around the value to prevent syntax errors.
Diffstat (limited to 'packages/gsm')
-rw-r--r-- | packages/gsm/files/default | 4 | ||||
-rw-r--r-- | packages/gsm/files/gsmd | 10 | ||||
-rw-r--r-- | packages/gsm/libgsmd_svn.bb | 2 |
3 files changed, 10 insertions, 6 deletions
diff --git a/packages/gsm/files/default b/packages/gsm/files/default index 4b582dd5ac..3c164e8be6 100644 --- a/packages/gsm/files/default +++ b/packages/gsm/files/default @@ -6,6 +6,7 @@ case `cpuinfo_id` in "GTA01"|"GTA02") GSMD_OPTS="-s 115200 -F" GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on" + GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset" GSM_DEV="/dev/ttySAC0" ;; "HTC Apache"|"HTC Blueangel") @@ -37,6 +38,9 @@ case `cpuinfo_id` in # If your GSM device needs to be powered up, uncomment and modify the next line #GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on" + # If your GSM device then needs to be reset, uncomment and modify the next line + #GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset" + # This should be in a common /etc/default/serial, together with # BT_DEV and IR_DEV for devices that have those on a serial port #GSM_DEV="/dev/ttyS1" diff --git a/packages/gsm/files/gsmd b/packages/gsm/files/gsmd index bc7999ea77..0ac4698899 100644 --- a/packages/gsm/files/gsmd +++ b/packages/gsm/files/gsmd @@ -13,10 +13,10 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin case "$1" in start) - [ -n $GSM_POW ] && ( echo "0" >$GSM_POW; sleep 1 ) - [ -n $GSM_POW ] && ( echo "1" >$GSM_POW; sleep 1 ) - [ -n $GSM_RES ] && ( echo "1" >$GSM_RES; sleep 1 ) - [ -n $GSM_RES ] && ( echo "0" >$GSM_RES; sleep 2 ) + [ -n "$GSM_POW" ] && ( echo "0" >$GSM_POW; sleep 1 ) + [ -n "$GSM_POW" ] && ( echo "1" >$GSM_POW; sleep 1 ) + [ -n "$GSM_RES" ] && ( echo "1" >$GSM_RES; sleep 1 ) + [ -n "$GSM_RES" ] && ( echo "0" >$GSM_RES; sleep 2 ) echo -n "Starting GSM daemon: " start-stop-daemon -S -x /usr/sbin/gsmd -- gsmd -p $GSM_DEV $GSMD_OPTS >/tmp/gsm.log 2>&1 & @@ -28,7 +28,7 @@ case "$1" in fi ;; stop) - [ -n $GSM_POW ] && echo "0" >$GSM_POW + [ -n "$GSM_POW" ] && echo "0" >$GSM_POW echo -n "Stopping GSM daemon: " start-stop-daemon -K -x /usr/sbin/gsmd diff --git a/packages/gsm/libgsmd_svn.bb b/packages/gsm/libgsmd_svn.bb index 914520ad8a..8044b949aa 100644 --- a/packages/gsm/libgsmd_svn.bb +++ b/packages/gsm/libgsmd_svn.bb @@ -4,7 +4,7 @@ LICENSE = "GPL LGPL" SECTION = "libs/gsm" PROVIDES += "gsmd" PV = "0.1+svnr${SRCREV}" -PR = "r22" +PR = "r23" SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \ file://gsmd \ |