From d8b6646a004060edf073b96065fdbb979baa2f68 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 27 Nov 2011 19:31:33 +1000 Subject: Trying to make things safer for upgrades and some general tweaks. --- start-sim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'start-sim') diff --git a/start-sim b/start-sim index 3313f57..dbb1beb 100755 --- a/start-sim +++ b/start-sim @@ -44,7 +44,11 @@ else SUDO="sudo -Hu opensim" fi +# Would be nice if this worked. +export MONO_PATH=${bindir} +# Then we would not have to do this, and subsequently write all over the damn bin directory. cd ${bindir} + if [ "x$Screaming" = "xtrue" ] then if ($screen_check | grep -q ${console_name}); then @@ -63,7 +67,7 @@ else fi inidir=/opt/opensim/config/${tgt} -cmd="/usr/bin/mono ${exe}.exe -inidirectory=${inidir} -logconfig=${inidir}/${exe}.exe.config $NeedARest" +cmd="/usr/bin/mono ${bindir}/${exe}.exe -inidirectory=${inidir} -logconfig=${inidir}/${exe}.exe.config $NeedARest" title=$(head -n 1 ${inidir}/Regions/sim.ini ) # Check if it's already running. -- cgit v1.1