summaryrefslogtreecommitdiffstats
path: root/remote/modules/pvs2/data/opt/openslx/scripts/setup-pvsmgr
blob: aaaf85d2b22d8b0f90fa678d1983ca088cd2a90f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/ash

. /opt/openslx/config

# Try to get fresh version from server
CONF=
if [ -n "$SLX_PVS_CONFIG_URL" ]; then
	DST="$(mktemp)"
	wget -T 5 -O "${DST}" "$SLX_PVS_CONFIG_URL"
	[ -s "${DST}" ] && CONF="--config=${DST}"
fi

openbox &

exec /opt/openslx/bin/pvsmgr "$CONF" "$@"