}
# If the query is a file, just printing the file
- [ -f "$BMX6_DIR/$QUERY" ] && cat "$BMX6_DIR/$QUERY";
+ [ -f "$BMX6_DIR/$1" ] && cat "$BMX6_DIR/$1";
}
if [ "${QUERY##*/}" == "all" ]; then
QALL=1
fi
+if [ "$QUERY" == '$info' ]; then
+ echo '{ "info": [ '
+ print_query status
+ echo -n ","
+ print_query interfaces
+ echo "] }"
+fi
if [ "$QUERY" == '$neighbours' ]; then
QALL=1
exit 0
else if [ "$QUERY" == '$tunnels' ]; then
- bmx6 -c --jshow tunnels
+ bmx6 -c --jshow tunnels /r=0
exit 0
else