Ver código fonte

Create default mesh protocol file if needed

Bob Mottram 7 anos atrás
pai
commit
4d21771969
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      src/freedombone-mesh-batman

+ 4
- 0
src/freedombone-mesh-batman Ver arquivo

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