Browse Source

Fix mesh protocol condition

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

+ 1
- 1
src/freedombone-mesh-batman View File

238
 
238
 
239
     systemctl restart nginx
239
     systemctl restart nginx
240
 
240
 
241
-    if [[ "$MESH_DEFAULT_PROTOCOL" == 'bmx6' ]]; then
241
+    if grep -q "bmx6" $MESH_DEFAULT_PROTOCOL; then
242
         systemctl restart bmx6
242
         systemctl restart bmx6
243
     else
243
     else
244
         systemctl restart bmx7
244
         systemctl restart bmx7