Sfoglia il codice sorgente

Fix mesh protocol condition

Bob Mottram 7 anni fa
parent
commit
c4a284abb1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/freedombone-mesh-batman

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

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