/etc/init.d/gsmd: Disable echo before powering on the gta01 GSM modem so that
authorMike Westerhof <mwester@dls.net>
Mon, 24 Sep 2007 17:56:48 +0000 (17:56 +0000)
committerMike Westerhof <mwester@dls.net>
Mon, 24 Sep 2007 17:56:48 +0000 (17:56 +0000)
the modem doesn't talk to itself during startup - fixes gsmd startup problem.
Also re-order disable of HW flowcontrol on shutdown to eliminate a crash window.

packages/gsm/files/fic-gta01/gsmd
packages/gsm/libgsmd_svn.bb

index 3c3f63a..d8323e2 100644 (file)
@@ -1,4 +1,4 @@
-##!/bin/sh
+#!/bin/sh
 #
 # gsmd  This shell script starts and stops gsmd.
 #
@@ -15,6 +15,7 @@ case "$1" in
     start)
         stty -F "$GSM_DEV" -crtscts
         [ -n "$GSM_POW" ] && ( echo "0" >$GSM_POW; sleep 1 )
+        stty -F "$GSM_DEV" -echo
         [ -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 )
@@ -29,23 +30,20 @@ case "$1" in
         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
+        [ -n "$GSM_POW" ] && echo "0" >$GSM_POW
         echo "gsmd."
         ;;
     restart|force-reload)
         $0 stop
         $0 start
-        exit
         ;;
     *)
-        echo "Usage: /etc/init.d/apmd {start|stop|restart|force-reload}"
+        echo "Usage: /etc/init.d/gsmd {start|stop|restart|force-reload}"
         exit 1
         ;;
 esac
 
 exit 0
-
index c2b758e..948b979 100644 (file)
@@ -4,7 +4,7 @@ LICENSE = "GPL LGPL"
 SECTION = "libs/gsm"
 PROVIDES += "gsmd"
 PV = "0.1+svnr${SRCREV}"
-PR = "r29"
+PR = "r30"
 
 SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \
            file://024_sms-text-in-bracket.patch;patch=1;minrev=2957 \