浏览代码

Fix mesh protocol condition

Bob Mottram 7 年前
父节点
当前提交
c4a284abb1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-mesh-batman

+ 1
- 1
src/freedombone-mesh-batman 查看文件

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