Browse Source

Create default mesh protocol file if needed

Bob Mottram 7 years ago
parent
commit
4d21771969
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-mesh-batman

+ 4
- 0
src/freedombone-mesh-batman View File

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