Explorar el Código

Fix mesh protocol condition

Bob Mottram hace 7 años
padre
commit
c4a284abb1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/freedombone-mesh-batman

+ 1
- 1
src/freedombone-mesh-batman Ver fichero

@@ -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