summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-03-24 16:18:50 +0100
committermakefu <github@syntax-fehler.de>2014-03-24 16:18:50 +0100
commit5cc42ea1134afb1762c8f21cf31c6285b7dc70b4 (patch)
tree3410157076bbcbf35ed4c1456c3ca10d7f603317
parentb672386a19454d32fb7a3ce3ddb19eeb6035cac5 (diff)
add reaktor refresh configuration and command
-rwxr-xr-xfilehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares3
-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/refresh_shares b/filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares
new file mode 100755
index 00000000..4030338f
--- /dev/null
+++ b/filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sudo /krebs/bin/refresh-shares.ship 2>&1
diff --git a/filehooker/root-image/krebs/etc/Reaktor/config.py b/filehooker/root-image/krebs/etc/Reaktor/config.py
index 501edb70..589283f0 100644
--- a/filehooker/root-image/krebs/etc/Reaktor/config.py
+++ b/filehooker/root-image/krebs/etc/Reaktor/config.py
@@ -28,6 +28,7 @@ commands = [
default_command('rev'),
default_command('uptime'),
default_command('shares'),
+ default_command('refresh_shares'),
default_command('onion'),
default_command('nocommand'),
# command not found