summaryrefslogtreecommitdiff
path: root/packages/gsm/files/fic-gta01/gsmd
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gsm/files/fic-gta01/gsmd')
-rw-r--r--packages/gsm/files/fic-gta01/gsmd10
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/gsm/files/fic-gta01/gsmd b/packages/gsm/files/fic-gta01/gsmd
index 3c3f63a4df..d8323e202c 100644
--- a/packages/gsm/files/fic-gta01/gsmd
+++ b/packages/gsm/files/fic-gta01/gsmd
@@ -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
-