Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/rpms/dextrose-platform/dextrose-platform-disable_mesh-exit-if-already-disabled.patch
blob: 5bd40a099ffcf36e4bdefca8802736e9c76ee89c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/etc/powerd/postresume.d/disable_mesh.sh b/etc/powerd/postresume.d/disable_mesh.sh
index 7d64c07..0aea85a 100755
--- a/etc/powerd/postresume.d/disable_mesh.sh
+++ b/etc/powerd/postresume.d/disable_mesh.sh
@@ -26,6 +26,11 @@
 
 LBS_MESH=/sys/class/net/eth0/lbs_mesh
 
+if [ -f $LBS_MESH ] && [ $(cat $LBS_MESH) = "0x0" ]
+then
+    exit 0
+fi
+
 while [ ! -f $LBS_MESH ] || [ $(cat $LBS_MESH) = "0x0" ]
 do
     sleep 0.5s