aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example/start.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xexample/start.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/example/start.sh b/example/start.sh
new file mode 100755
index 0000000..c479f78
--- /dev/null
+++ b/example/start.sh
@@ -0,0 +1,16 @@
1#!/bin/bash
2
3cd /opt/opensim_SC/current/bin
4
5source ../../common.sh
6
7USER=$(whoami)
8
9if [ $USER = "${OS_USER}" ]
10then
11 SUDO=""
12else
13 SUDO="sudo -Hu ${OS_USER}"
14fi
15
16${SUDO} mono OpenSim.exe -inidirectory=../../config/sim01