batadv-vis 212 B

12345678910
  1. #!/bin/bash
  2. # only operate as "batadv-vis -f jsondoc"
  3. [ "$1" != "-f" ] && exit 2
  4. [ "$2" != "jsondoc" ] && exit 3
  5. # output JSON in script's dir
  6. fn=`dirname $0`
  7. fn=`readlink -f "$fn"`
  8. cat "${fn}/batadv-vis.json"