summaryrefslogtreecommitdiffstats
path: root/filehooker/root-image/krebs/etc/Reaktor/commands
diff options
context:
space:
mode:
Diffstat (limited to 'filehooker/root-image/krebs/etc/Reaktor/commands')
-rwxr-xr-xfilehooker/root-image/krebs/etc/Reaktor/commands/ips3
-rwxr-xr-xfilehooker/root-image/krebs/etc/Reaktor/commands/reboot3
2 files changed, 4 insertions, 2 deletions
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/ips b/filehooker/root-image/krebs/etc/Reaktor/commands/ips
index 049d0a9d..17c39658 100755
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/ips
+++ b/filehooker/root-image/krebs/etc/Reaktor/commands/ips
@@ -1,3 +1,2 @@
#!/bin/sh
-ip addr | grep 'inet ' | awk '{print $2}' | grep -v 127.0.0.1
-
+ip addr | grep 'inet ' | awk '{print $2}' | grep -v 127.0.0.1 | grep .
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/reboot b/filehooker/root-image/krebs/etc/Reaktor/commands/reboot
new file mode 100755
index 00000000..a264831a
--- /dev/null
+++ b/filehooker/root-image/krebs/etc/Reaktor/commands/reboot
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo "system is going down"
+sudo /usr/bin/reboot