summaryrefslogtreecommitdiffstats
path: root/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-10-09 12:06:27 +0200
committermakefu <github@syntax-fehler.de>2015-10-09 12:06:27 +0200
commitd0f89327eb883aeba5bc2988d6e1c41c5f4a2bd9 (patch)
tree800cfab2f2e63fbdb8201f134a121f2b04704d7d /2configs
parent08500c7c2450d39fb7910381d9c75a501bb88e6f (diff)
parent89ae695cedb353f4f69a7f808293696ade24f12a (diff)
Merge branch 'master' of pnp:stockholm
Diffstat (limited to '2configs')
-rw-r--r--2configs/Reaktor/shack-correct.nix20
-rw-r--r--2configs/Reaktor/shack-correct.sh6
2 files changed, 26 insertions, 0 deletions
diff --git a/2configs/Reaktor/shack-correct.nix b/2configs/Reaktor/shack-correct.nix
new file mode 100644
index 000000000..8f30807f1
--- /dev/null
+++ b/2configs/Reaktor/shack-correct.nix
@@ -0,0 +1,20 @@
+{ config, lib, pkgs, ... }:
+
+with pkgs;
+let
+ script = pkgs.substituteAll ( {
+ name="shack-correct";
+ isExecutable=true;
+ dir = "";
+ src = ./shack-correct.sh;
+ });
+in {
+ krebs.Reaktor.extraConfig = ''
+ public_commands.insert(0,{
+ 'capname' : "shack-correct",
+ 'pattern' : '^(?P<args>.*Shack.*)$$',
+ 'argv' : ["${script}"],
+ 'env' : { }})
+ '';
+}
+
diff --git a/2configs/Reaktor/shack-correct.sh b/2configs/Reaktor/shack-correct.sh
new file mode 100644
index 000000000..3b4d04f80
--- /dev/null
+++ b/2configs/Reaktor/shack-correct.sh
@@ -0,0 +1,6 @@
+#! /bin/sh
+set -eu
+printf "Sie meinten wohl \""
+echo -n $@ | sed 's/Shack/shack/g'
+echo "\""
+echo "${_from}--"