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

. /opt/openslx/config
DST="/opt/openslx/pvs2/pvs2.ini"

# Try to get fresh version from server
if [ -n "$SLX_PVS_CONFIG_URL" ]; then
	wget -T 5 -O "${DST}.new" "$SLX_PVS_CONFIG_URL"
	[ -s "${DST}.new" ] && mv -f "${DST}.new" "${DST}"
fi

openbox &

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