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