diff options
author | Leon Woestenberg <leon.woestenberg@gmail.com> | 2007-10-05 12:43:03 +0000 |
---|---|---|
committer | Leon Woestenberg <leon.woestenberg@gmail.com> | 2007-10-05 12:43:03 +0000 |
commit | fb5a8ff3d88fca827e22ad48f136c7fe1c6cea10 (patch) | |
tree | f28b9b4a860576cf9909d567efc7baeb20dd2740 /packages/gsm/files | |
parent | f0f72d8aa5de6a41796117c6e781e150bbacbe47 (diff) | |
parent | bab0c48ac5132ad63b4f3da27a1c39c20b5db86c (diff) |
merge of 'aac60b186b977130a688c4d00bfde913fb6221eb'
and 'f42403739ba7106ebfe92b3af59bf9c81b54f06d'
Diffstat (limited to 'packages/gsm/files')
-rw-r--r-- | packages/gsm/files/fic-gta01/gsmd | 10 | ||||
-rw-r--r-- | packages/gsm/files/lgsm_send_fix_return_value.patch | 11 |
2 files changed, 15 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 - diff --git a/packages/gsm/files/lgsm_send_fix_return_value.patch b/packages/gsm/files/lgsm_send_fix_return_value.patch new file mode 100644 index 0000000000..00ba3a4549 --- /dev/null +++ b/packages/gsm/files/lgsm_send_fix_return_value.patch @@ -0,0 +1,11 @@ +--- gsm/src/libgsmd/libgsmd.c.orig 2007-09-25 00:41:56.000000000 -0500 ++++ gsm/src/libgsmd/libgsmd.c 2007-09-25 00:43:44.000000000 -0500 +@@ -210,7 +210,7 @@ + pos += rc; + } + } +- return 0; ++ return (sizeof(*gmh) + gmh->len); + } + + struct gsmd_msg_hdr *lgsm_gmh_fill(int type, int subtype, int payload_len) |