diff options
author | onefang | 2020-09-08 21:31:56 +1000 |
---|---|---|
committer | onefang | 2020-09-08 21:31:56 +1000 |
commit | f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b (patch) | |
tree | d78dfa6bf1f8aa4ae47423ddcd3c778be8811e57 /example/start.sh | |
parent | Add examples directory. (diff) | |
download | opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.zip opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.tar.gz opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.tar.bz2 opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.tar.xz |
Add the old bash scripts.
Most of these will eventually be rewritten as C + Lua.
Diffstat (limited to '')
-rwxr-xr-x | example/start.sh | 16 |
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 | |||
3 | cd /opt/opensim_SC/current/bin | ||
4 | |||
5 | source ../../common.sh | ||
6 | |||
7 | USER=$(whoami) | ||
8 | |||
9 | if [ $USER = "${OS_USER}" ] | ||
10 | then | ||
11 | SUDO="" | ||
12 | else | ||
13 | SUDO="sudo -Hu ${OS_USER}" | ||
14 | fi | ||
15 | |||
16 | ${SUDO} mono OpenSim.exe -inidirectory=../../config/sim01 | ||