From 2404a645f137716caafd11e2ab053ce4ae84ec14 Mon Sep 17 00:00:00 2001 From: Martin Abente Date: Wed, 02 Mar 2011 17:59:32 +0000 Subject: exit disable_mesh if not xo 1 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 --- 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 -- cgit v0.9.1