diff options
author | Matthias Hentges <oe@hentges.net> | 2007-03-30 22:46:54 +0000 |
---|---|---|
committer | Matthias Hentges <oe@hentges.net> | 2007-03-30 22:46:54 +0000 |
commit | 25b8780a6fdda41cdd6a409e64daff512a8d00a5 (patch) | |
tree | 69f9eba988f4f0613a6f09294a49691e26f0750f /packages/gsm/files/gsmd | |
parent | 39886a956b7f240f604b2f71cfaea294276f40b9 (diff) | |
parent | 5ed24bd44de3235edcb3ef2704d70de610fc1878 (diff) |
merge of '302d6092c09d8a1b6e5ada2cf66d444d001796b5'
and '5075b3f69144c8ca977abda48869d41f724d1334'
Diffstat (limited to 'packages/gsm/files/gsmd')
-rw-r--r-- | packages/gsm/files/gsmd | 22 |
1 files changed, 11 insertions, 11 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: " |