summaryrefslogtreecommitdiffstats
path: root/core/modules/pvs2/data/opt/openslx/scripts/systemd-pvsmgr
blob: 200c123867ced5704983250685ccf1e1c20a7128 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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 10 -O "${DST}.new" "$SLX_PVS_CONFIG_URL"
	[ -s "${DST}.new" ] && mv -f "${DST}.new" "${DST}"
fi

# Disable low RAM warnings if we run dedicated
if [ -n "$SLX_PVS_DEDICATED" ]; then
	touch "/run/openslx/no-ram-warning"
fi

exit 0