[oe-commits] org.oe.dev gsmd: don't fail if GSM_POW is not set

pH5 commit openembedded-commits at lists.openembedded.org
Fri Mar 30 14:06:49 UTC 2007


gsmd: don't fail if GSM_POW is not set

Author: pH5 at openembedded.org
Branch: org.openembedded.dev
Revision: a3d926e30f694565087cbef12e1a3a1122402d67
ViewMTN: http://monotone.openembedded.org/revision.psp?id=a3d926e30f694565087cbef12e1a3a1122402d67
Files:
1
packages/gsm/files/gsmd
Diffs:

#
# mt diff -r1a9df9eb00104ec4c3326987ba78e6a8d0972aa2 -ra3d926e30f694565087cbef12e1a3a1122402d67
#
# 
# 
# patch "packages/gsm/files/gsmd"
#  from [7c65edce0a65a5c002abc3d8193d7e72c6dae891]
#    to [b9a426f81bcbcf52b88fe0e13f66505d4a8ca216]
# 
============================================================
--- packages/gsm/files/gsmd	7c65edce0a65a5c002abc3d8193d7e72c6dae891
+++ packages/gsm/files/gsmd	b9a426f81bcbcf52b88fe0e13f66505d4a8ca216
@@ -16,21 +16,21 @@ start() {
 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: "






More information about the Openembedded-commits mailing list