From: Philipp Zabel Date: Fri, 30 Mar 2007 14:01:53 +0000 (+0000) Subject: gsmd: don't fail if GSM_POW is not set X-Git-Tag: Release-2010-05/1~8868^2~901^2~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6ac2d47a758269528711ece6c5a6f64878e5a1d;p=openembedded.git gsmd: don't fail if GSM_POW is not set --- 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: "