summaryrefslogtreecommitdiffstats
path: root/god/Reaktor/index
diff options
context:
space:
mode:
authorroot <root@krebs>2011-09-09 18:20:34 +0200
committerroot <root@krebs>2011-09-09 18:20:34 +0200
commit176c9ac08ad9c2ddc430b2d1a194f6be41115f5b (patch)
tree82ea214ff1d45799099576e4ff007c34a6b7c990 /god/Reaktor/index
parentdac9eb2553987778500e0bc7e54ad2a28124969d (diff)
parent150ce5757d2982da740bd9ce2b44b57b6d2831c6 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'god/Reaktor/index')
-rwxr-xr-xgod/Reaktor/index6
1 files changed, 4 insertions, 2 deletions
diff --git a/god/Reaktor/index b/god/Reaktor/index
index fdf6bffc..a7840bb2 100755
--- a/god/Reaktor/index
+++ b/god/Reaktor/index
@@ -27,11 +27,13 @@ fi
cd tmp/jsb-$jsb_version
# TODO only if it is not already configured properly
-sed -i '
+cache="`cat config/udp-send`"
+echo "$cache" |
+sed '
s/^host *=.*/host="'$host'"/
s/^passwd *=.*/passwd="'$passwd'"/
s/^printto *=.*/printto="'$printto'"/
-' config/udp-send
+' > config/udp-send
# TODO output modules: stderr, jsb-udp, remount-ro, ...
PYTHONUNBUFFERED=y $listener | tee /dev/stderr | bin/jsb-udp