summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@shack.fritz.box>2010-04-26 19:43:49 +0200
committerroot <root@shack.fritz.box>2010-04-26 19:43:49 +0200
commit20460b4b9d1a2a1dd21c0616a2174e621b21ab05 (patch)
tree53011f7cd6c3b33534d8425597ff62742a835430
parent3ee6fac509018191edb5c424fbd3adb4b1b25100 (diff)
Start noise as shack
-rwxr-xr-xnoise-as-shack4
-rwxr-xr-xnoise-server5
2 files changed, 5 insertions, 4 deletions
diff --git a/noise-as-shack b/noise-as-shack
new file mode 100755
index 00000000..c327bb81
--- /dev/null
+++ b/noise-as-shack
@@ -0,0 +1,4 @@
+#! /bin/sh
+qname="`readlink -f "$0"`"
+dirname="`dirname "$qname"`"
+exec su - shack -c "$dirname"/noise
diff --git a/noise-server b/noise-server
index defe2f5b..2012bbb5 100755
--- a/noise-server
+++ b/noise-server
@@ -1,7 +1,4 @@
#! /bin/sh
qname="`readlink -f "$0"`"
dirname="`dirname "$qname"`"
-if test -d "$dirname/modules" ; then
- export NOISE_PATH="${NOISE_PATH+$NOISE_PATH:}$dirname/modules"
-fi
-exec tcpserver -c 423 -t 2 -D 0.0.0.0 42380 "$dirname/noise"
+exec tcpserver -c 423 -t 2 -D 0.0.0.0 23 "$dirname/noise-as-shack"