diff options
author | makefu <github@syntax-fehler.de> | 2015-10-09 12:06:27 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-10-09 12:06:27 +0200 |
commit | 42c2a52eaa7a111824f00582eb0479154b51211e (patch) | |
tree | 8c1b64fce6a8c70275a68f8b8753bff2fb633543 /makefu/2configs/Reaktor | |
parent | e507ab5ba770d57e846aa79f12ef055bd2fa70e4 (diff) | |
parent | 965eba6073f9de3726d9776ca18f6de9ad8ec867 (diff) |
Merge branch 'master' of pnp:stockholm
Diffstat (limited to 'makefu/2configs/Reaktor')
-rw-r--r-- | makefu/2configs/Reaktor/shack-correct.nix | 20 | ||||
-rw-r--r-- | makefu/2configs/Reaktor/shack-correct.sh | 6 |
2 files changed, 26 insertions, 0 deletions
diff --git a/makefu/2configs/Reaktor/shack-correct.nix b/makefu/2configs/Reaktor/shack-correct.nix new file mode 100644 index 000000000..8f30807f1 --- /dev/null +++ b/makefu/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/makefu/2configs/Reaktor/shack-correct.sh b/makefu/2configs/Reaktor/shack-correct.sh new file mode 100644 index 000000000..3b4d04f80 --- /dev/null +++ b/makefu/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}--" |