Added tunnels special function for bmx6-info script
authorp4u <hakais@gmail.com>
Tue, 25 Dec 2012 19:56:44 +0000 (20:56 +0100)
committerp4u <hakais@gmail.com>
Tue, 25 Dec 2012 19:56:44 +0000 (20:56 +0100)
bmx6-luci/files/www/cgi-bin/bmx6-info

index b82f8fd..931cbf6 100644 (file)
@@ -95,12 +95,17 @@ if [ "$QUERY" == '$neighbours' ]; then
        print_query descriptions
        echo "} ] }"
        exit 0
+
+else if [ "$QUERY" == '$tunnels' ]; then
+       bmx6 -c --jshow tunnels
+       exit 0
+
 else
        check_path "$BMX6_DIR/$QUERY"
        print_query $QUERY
        exit 0
 fi
-
+fi
 
 ls -1F "$BMX6_DIR"
 exit 0