[oe-commits] org.oe.dev libgsmd: add modified start script for fic-gta01 due to problems w/ UART multiplexing

mickeyl commit openembedded-commits at lists.openembedded.org
Fri Sep 14 01:04:47 UTC 2007


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...

Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 235d3c4d9fbc3aee4e352851f04eb4fa2da4a68f
ViewMTN: http://monotone.openembedded.org/revision/info/235d3c4d9fbc3aee4e352851f04eb4fa2da4a68f
Files:
1
packages/gsm/files/fic-gta01
packages/gsm/files/fic-gta01/gsmd
packages/gsm/libgsmd_svn.bb
Diffs:

#
# mt diff -r4f9b07a5e7bd097ff0b8bc2cb95bcae248ba7f81 -r235d3c4d9fbc3aee4e352851f04eb4fa2da4a68f
#
# 
# 
# add_dir "packages/gsm/files/fic-gta01"
# 
# add_file "packages/gsm/files/fic-gta01/gsmd"
#  content [4b34b4d0ea3c93fd4db2389a4f1ebd9a7e8c4e22]
# 
# patch "packages/gsm/libgsmd_svn.bb"
#  from [f40a2af6cf0a3f96d564ff62dd07830973d9154a]
#    to [9aa39b60aa04ee474e8c277bf9337a9194ce32a7]
# 
============================================================
--- packages/gsm/files/fic-gta01/gsmd	4b34b4d0ea3c93fd4db2389a4f1ebd9a7e8c4e22
+++ packages/gsm/files/fic-gta01/gsmd	4b34b4d0ea3c93fd4db2389a4f1ebd9a7e8c4e22
@@ -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
+
============================================================
--- packages/gsm/libgsmd_svn.bb	f40a2af6cf0a3f96d564ff62dd07830973d9154a
+++ packages/gsm/libgsmd_svn.bb	9aa39b60aa04ee474e8c277bf9337a9194ce32a7
@@ -1,10 +1,10 @@ PV = "0.1+svnr${SRCREV}"
 DESCRIPTION = "GSM libraries and daemons implementing the 07.10 specification"
 HOMEPAGE = "http://www.openmoko.org"
 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 \






More information about the Openembedded-commits mailing list