diff options
author | Michael Lauer <mickey@vanille-media.de> | 2007-09-14 00:38:57 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2007-09-14 00:38:57 +0000 |
commit | 7a9354ad56e1b7e249c91f4a94e5a3b016900b54 (patch) | |
tree | e56ec87c894a605dc80a52068216f08b7074d2e2 | |
parent | f8a2fa8c7e3e72a9a6349af8248f2606d30f0590 (diff) |
libgsmd: add modified start script for fic-gta01 due to problems w/ UART multiplexing
See http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=788 for more information
This is hopefully just a temporary solution...
-rw-r--r-- | packages/gsm/files/fic-gta01/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/gsm/files/fic-gta01/gsmd | 51 | ||||
-rw-r--r-- | packages/gsm/libgsmd_svn.bb | 2 |
3 files changed, 52 insertions, 1 deletions
diff --git a/packages/gsm/files/fic-gta01/.mtn2git_empty b/packages/gsm/files/fic-gta01/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/gsm/files/fic-gta01/.mtn2git_empty diff --git a/packages/gsm/files/fic-gta01/gsmd b/packages/gsm/files/fic-gta01/gsmd new file mode 100644 index 0000000000..3c3f63a4df --- /dev/null +++ b/packages/gsm/files/fic-gta01/gsmd @@ -0,0 +1,51 @@ +##!/bin/sh +# +# gsmd This shell script starts and stops gsmd. +# +# chkconfig: 345 90 40 +# description: Gsmd manages access to a serial- or USB-connected GSM +# processname: gsmd + +PATH=/bin:/usr/bin:/sbin:/usr/sbin + +[ -f /etc/default/rcS ] && . /etc/default/rcS +[ -f /etc/default/gsmd ] && . /etc/default/gsmd + +case "$1" in + start) + stty -F "$GSM_DEV" -crtscts + [ -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 & + + if [ $? = 0 ]; then + echo "gsmd." + else + echo "(failed.)" + fi + ;; + stop) + [ -n "$GSM_POW" ] && echo "0" >$GSM_POW + + echo -n "Stopping GSM daemon: " + start-stop-daemon -K -x /usr/sbin/gsmd + stty -F "$GSM_DEV" -crtscts + echo "gsmd." + ;; + restart|force-reload) + $0 stop + $0 start + exit + ;; + *) + echo "Usage: /etc/init.d/apmd {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 + diff --git a/packages/gsm/libgsmd_svn.bb b/packages/gsm/libgsmd_svn.bb index b312015172..50debc0e11 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 = "r25" +PR = "r26" SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \ file://gsmd \ |