Browse Source

Check bmx7 was installed

Bob Mottram 7 years ago
parent
commit
c8a0e38f3a
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      src/freedombone-image-mesh

+ 5
- 3
src/freedombone-image-mesh View File

@@ -1449,9 +1449,11 @@ if [ -f $MESH_INSTALL_SETUP ]; then
1449 1449
     systemctl disable bmx6
1450 1450
     echo $'BMX6 disabled' >> $INSTALL_LOG
1451 1451
 
1452
-    systemctl stop bmx7
1453
-    systemctl disable bmx7
1454
-    echo $'BMX7 disabled' >> $INSTALL_LOG
1452
+    if [ -d /etc/bmx7 ]; then
1453
+        systemctl stop bmx7
1454
+        systemctl disable bmx7
1455
+        echo $'BMX7 disabled' >> $INSTALL_LOG
1456
+    fi
1455 1457
 
1456 1458
     systemctl stop olsr2
1457 1459
     systemctl disable olsr2