summaryrefslogtreecommitdiff
path: root/packages/gsm/files
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2007-03-30 22:46:54 +0000
committerMatthias Hentges <oe@hentges.net>2007-03-30 22:46:54 +0000
commit25b8780a6fdda41cdd6a409e64daff512a8d00a5 (patch)
tree69f9eba988f4f0613a6f09294a49691e26f0750f /packages/gsm/files
parent39886a956b7f240f604b2f71cfaea294276f40b9 (diff)
parent5ed24bd44de3235edcb3ef2704d70de610fc1878 (diff)
merge of '302d6092c09d8a1b6e5ada2cf66d444d001796b5'
and '5075b3f69144c8ca977abda48869d41f724d1334'
Diffstat (limited to 'packages/gsm/files')
-rw-r--r--packages/gsm/files/gsmd22
-rw-r--r--packages/gsm/files/magician/default4
2 files changed, 13 insertions, 13 deletions
diff --git a/packages/gsm/files/gsmd b/packages/gsm/files/gsmd
index 4b8db5d5a5..5c78e8178a 100644
--- a/packages/gsm/files/gsmd
+++ b/packages/gsm/files/gsmd
@@ -16,21 +16,21 @@ RETVAL=0
prog="gsmd"
start() {
- # FIXME add check whether GSM_POW is set at all, otherwise don't try to power on
- # Power on GSM device
-
# Hack for broken uboot and/or kernel on the neo1973
dmesg -n1
- if [ -e "${GSM_POW}" ]
+ if [ -n "${GSM_POW}" ]
then
- echo -n "Powering up GSM device..."
- echo "1" > ${GSM_POW}
- sleep 1
- echo "done"
- else
- echo "GSM device not found. Aborting startup"
- return false
+ if [ -e "${GSM_POW}" ]
+ then
+ echo -n "Powering up GSM device..."
+ echo "1" > ${GSM_POW}
+ sleep 1
+ echo "done"
+ else
+ echo "GSM device not found. Aborting startup"
+ return false
+ fi
fi
# Start daemons.
echo -n "Starting $prog: "
diff --git a/packages/gsm/files/magician/default b/packages/gsm/files/magician/default
index fb19d46fd5..a9c3b94b1d 100644
--- a/packages/gsm/files/magician/default
+++ b/packages/gsm/files/magician/default
@@ -1,7 +1,7 @@
# gsmd This shell script configures for the gsmd init script.
-# If you must specify special options, uncomment and modify the next line
-GSMD_OPTS="-s 115200 -F"
+# Set line Discipline 17 (N_TIHTC), needs ldisc.patch-ed gsmd
+GSMD_OPTS="-s 115200 -F -D 17"
# If your GSM device needs to be powered up, uncomment and modify the next line
#GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on"