summaryrefslogtreecommitdiffstats
path: root/filehooker/root-image
diff options
context:
space:
mode:
Diffstat (limited to 'filehooker/root-image')
-rwxr-xr-xfilehooker/root-image/krebs/etc/Reaktor/commands/ips3
-rw-r--r--filehooker/root-image/krebs/etc/Reaktor/config.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/ips b/filehooker/root-image/krebs/etc/Reaktor/commands/ips
new file mode 100755
index 00000000..049d0a9d
--- /dev/null
+++ b/filehooker/root-image/krebs/etc/Reaktor/commands/ips
@@ -0,0 +1,3 @@
+#!/bin/sh
+ip addr | grep 'inet ' | awk '{print $2}' | grep -v 127.0.0.1
+
diff --git a/filehooker/root-image/krebs/etc/Reaktor/config.py b/filehooker/root-image/krebs/etc/Reaktor/config.py
index 544f43ed..92ef6433 100644
--- a/filehooker/root-image/krebs/etc/Reaktor/config.py
+++ b/filehooker/root-image/krebs/etc/Reaktor/config.py
@@ -31,6 +31,7 @@ public_commands = [
default_command('list_downloads'),
default_command('badcommand'),
default_command('rev'),
+ default_command('ips'),
default_command('uptime'),
default_command('shares'),
default_command('onion'),