diff options
author | Darkeye <postfach@martinmichel.info> | 2011-02-22 14:13:01 (GMT) |
---|---|---|
committer | Darkeye <postfach@martinmichel.info> | 2011-02-22 14:13:01 (GMT) |
commit | e881e3a170ff7cfa0d535d488748fb290dacf344 (patch) | |
tree | 0f8a792abc37407bdd311ded78e1d98e1686e0d0 | |
parent | 10d3049bcf93cf9171def0c6d5caf9fc1dd3772d (diff) |
Add Debug CGi (routerip/cgi-bin/debug)
-rwxr-xr-x | files/www/cgi-bin/debug | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/files/www/cgi-bin/debug b/files/www/cgi-bin/debug new file mode 100755 index 0000000..14d8447 --- /dev/null +++ b/files/www/cgi-bin/debug @@ -0,0 +1,26 @@ +#!/bin/sh +echo -en "Status: 200 OK\r\n" +echo -en "Content-Type: text/html\r\n" +echo -en "\r\n" + +echo "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head></head><body>" +echo "<h1>Router Status</h1>" +echo "<h2>Batman-ADV</h2>" +echo "<pre>" +batctl tg | cat +batctl tl |cat +echo "</pre>" +echo "<h2>Netzwerk</h2>" +echo "<pre>" +ifconfig | cat +echo "</pre>" +echo "<h2>Prozesse</h2>" +echo "<pre>" +ps aux | cat +echo "</pre>" +echo "<h2>UCI</h2>" +echo "<pre>" +uci show | cat +echo "</pre>" +echo "</body></html>" + |