From be52c4f2fa00ff0f0a4049931c7931a44846476a Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 2 Apr 2014 04:09:39 +0200 Subject: add bonusfeatures to reaktor --- filehooker/root-image/krebs/etc/Reaktor/commands/ips | 3 +-- filehooker/root-image/krebs/etc/Reaktor/commands/reboot | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/reboot (limited to 'filehooker/root-image/krebs/etc/Reaktor/commands') 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 -- cgit v1.2.3