[Dextrose] [PATCH] exit disable_mesh if not xo 1

Martin Abente martin.abente.lahaye at gmail.com
Wed Mar 2 13:05:40 EST 2011


Check for the XO version to make sure is a XO 1
otherwise the script could run and loop forever.

Hopefully this script will be removed for DX3.

Signed-off-by: Martin Abente <martin.abente.lahaye at gmail.com>
---
 etc/powerd/postresume.d/disable_mesh.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/etc/powerd/postresume.d/disable_mesh.sh b/etc/powerd/postresume.d/disable_mesh.sh
index 0aea85a..fd62abf 100755
--- a/etc/powerd/postresume.d/disable_mesh.sh
+++ b/etc/powerd/postresume.d/disable_mesh.sh
@@ -25,6 +25,12 @@
 #         2. Grant it execution permissions (chmod 755)
 
 LBS_MESH=/sys/class/net/eth0/lbs_mesh
+XO_MODEL=/ofw/mfg-data/MN
+
+if [ $(cat $XO_MODEL) != "XO-1" ]
+then
+    exit 0
+fi
 
 if [ -f $LBS_MESH ] && [ $(cat $LBS_MESH) = "0x0" ]
 then
-- 
1.7.1



More information about the Dextrose mailing list