summaryrefslogtreecommitdiffstats
path: root/filehooker/root-image/krebs/etc
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-04-02 04:09:39 +0200
committermakefu <github@syntax-fehler.de>2014-04-02 04:09:39 +0200
commitbe52c4f2fa00ff0f0a4049931c7931a44846476a (patch)
treeb913ce684793386cff10c665944628787865f9be /filehooker/root-image/krebs/etc
parent7515ca585d1cbf2df269bfd46017fe513dbb848c (diff)
add bonusfeatures to reaktor
Diffstat (limited to 'filehooker/root-image/krebs/etc')
-rwxr-xr-xfilehooker/root-image/krebs/etc/Reaktor/commands/ips3
-rwxr-xr-xfilehooker/root-image/krebs/etc/Reaktor/commands/reboot3
-rw-r--r--filehooker/root-image/krebs/etc/Reaktor/config.py6
3 files changed, 8 insertions, 4 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
diff --git a/filehooker/root-image/krebs/etc/Reaktor/config.py b/filehooker/root-image/krebs/etc/Reaktor/config.py
index bc19dafc..5e07b659 100644
--- a/filehooker/root-image/krebs/etc/Reaktor/config.py
+++ b/filehooker/root-image/krebs/etc/Reaktor/config.py
@@ -8,7 +8,8 @@ irc_alarm_timeout = 300
irc_hammer_interval = 10
irc_kill_timeout = 360
irc_nickname = name
-irc_server = 'irc.freenode.org'
+#irc_server = 'elchirc.nsupdate.info'
+irc_server = 'irc.freenode.net'
irc_restart_timeout = 5
irc_port = 6667
irc_channels = [
@@ -54,5 +55,6 @@ commands = [
default_command('reload'),
default_command('update-search'),
default_command('refresh_shares'),
- default_command('ftpget')
+ default_command('ftpget'),
+ default_command('reboot')
]