瀏覽代碼

Include bmx status within batman status command

Bob Mottram 7 年之前
父節點
當前提交
9301df8b4a
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      src/freedombone-mesh-batman

+ 6
- 0
src/freedombone-mesh-batman 查看文件

@@ -51,6 +51,12 @@ fi
51 51
 
52 52
 function status {
53 53
     batctl o
54
+
55
+    if grep -q "bmx6" $MESH_CURRENT_PROTOCOL; then
56
+        bmx6 -c show=originators
57
+    else
58
+        bmx7 -c show=originators
59
+    fi
54 60
 }
55 61
 
56 62
 function stop {