diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2007-03-30 14:01:53 +0000 |
---|---|---|
committer | Philipp Zabel <philipp.zabel@gmail.com> | 2007-03-30 14:01:53 +0000 |
commit | d6ac2d47a758269528711ece6c5a6f64878e5a1d (patch) | |
tree | d8db6e7a1264934bc08e15834f4d4e74e8529479 /packages/gsm | |
parent | 29aa31acd126ef0a347c120e8cdd3349417adbb4 (diff) |
gsmd: don't fail if GSM_POW is not set
Diffstat (limited to 'packages/gsm')
-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: " |