diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2007-03-30 15:46:43 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-03-30 15:46:43 +0000 |
commit | f673b8d213609a6b90b2f923b2cc96e6c0c820a2 (patch) | |
tree | 66ed165ef14b03ca15fa7bf488f4e4aa67ede648 /packages/gsm/files/gsmd | |
parent | a31229ef8c96e6ad6dbe5c7b9c78639354b73ec0 (diff) | |
parent | c5747068f49e45234934ba5ab067e0a4ee589c2a (diff) |
merge of '1161b24f978165b889f1fc52b8f6168a4d0ce9dc'
and '7922bd128efa4e3b482c762de566056c93ec064e'
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: " |