Parcourir la source

Create default mesh protocol file if needed

Bob Mottram il y a 7 ans
Parent
révision
4d21771969
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4
    0
      src/freedombone-mesh-batman

+ 4
- 0
src/freedombone-mesh-batman Voir le fichier

238
 
238
 
239
     systemctl restart nginx
239
     systemctl restart nginx
240
 
240
 
241
+    if [ ! -f $MESH_DEFAULT_PROTOCOL ]; then
242
+        echo 'bmx7' > $MESH_DEFAULT_PROTOCOL
243
+    fi
244
+
241
     if grep -q "bmx6" $MESH_DEFAULT_PROTOCOL; then
245
     if grep -q "bmx6" $MESH_DEFAULT_PROTOCOL; then
242
         systemctl restart bmx6
246
         systemctl restart bmx6
243
     else
247
     else