batctl 293 B

123456789101112131415
  1. #!/bin/bash
  2. # output batctl-vd.json in script's dir
  3. fn=`dirname $0`
  4. fn=`readlink -f "$fn"`
  5. # only do something if started with the right set of parameters
  6. if [ "$*" == "vd json -n" ]; then
  7. cat "${fn}/batctl-vd.json"
  8. elif [ "$*" == "gwl" ]; then
  9. cat "${fn}/batctl-gwl.txt"
  10. else
  11. exit 1
  12. fi