Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Abente <martin.abente.lahaye@gmail.com>2011-03-02 17:59:32 (GMT)
committer Martin Abente <martin.abente.lahaye@gmail.com>2011-03-02 18:03:47 (GMT)
commit2404a645f137716caafd11e2ab053ce4ae84ec14 (patch)
tree1fd59d8093cef11285ff548ab4be6bde391ef9ca
parent5af706ce714c39c8abc2e9f37c52bbea8a8a4a2a (diff)
exit disable_mesh if not xo 1v2
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@gmail.com>
-rwxr-xr-xetc/powerd/postresume.d/disable_mesh.sh6
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