summaryrefslogblamecommitdiffstats
path: root/remote/modules/pvs2/data/opt/openslx/scripts/setup-pvsmgr
blob: aaaf85d2b22d8b0f90fa678d1983ca088cd2a90f (plain) (tree)
1
2
3
4
5
6
7
8
9
10

          
                     

                                      
     
                                     


                                                   

  
         
 
                                         
 
#!/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" "$@"