summaryrefslogtreecommitdiffstats
path: root/minikrebs/profiles/rickroller/customfiles/www/cgi-bin
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-01-07 11:58:28 +0700
committermakefu <github@syntax-fehler.de>2013-01-07 11:59:29 +0700
commit6ea50f3c77350e715649aa45061beb1701ebaa95 (patch)
tree44e6b5927ab32c9417d755d5ecc1f7ee876d9d1f /minikrebs/profiles/rickroller/customfiles/www/cgi-bin
parentd907a7aa781caac2a3086535f5ce997131170ca2 (diff)
rickroller: initial commit
Diffstat (limited to 'minikrebs/profiles/rickroller/customfiles/www/cgi-bin')
-rwxr-xr-xminikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper15
1 files changed, 15 insertions, 0 deletions
diff --git a/minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper b/minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper
new file mode 100755
index 00000000..ec328a3b
--- /dev/null
+++ b/minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+RRLOG="/tmp/rrlog"
+
+if [ -n "$RRLOG" ]; then
+ echo `awk '{print $1}' /proc/uptime` $REMOTE_ADDR:$REMOTE_PORT \'$HTTP_REFERER\' \'$HTTP_USER_AGENT\' >>"$RRLOG"
+fi
+
+# To signal a rickroll, blink for 15 seconds
+(echo timer > /sys/devices/platform/leds-gpio/leds/tp-link:blue:system/trigger ;sleep 15;echo none > /sys/devices/platform/leds-gpio/leds/tp-link:blue:system/trigger) &
+
+
+echo "Content-type: image/gif"
+echo ""
+cat /www/1x1.gif