new strategy for vnc dn

This commit is contained in:
Ville Rantanen
2016-11-08 10:56:04 +02:00
parent 4219c41ff3
commit a1f2228f6d
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ function helpexit() {
}
[[ "$1" = "-h" ]] && helpexit
dn=$( echo $UID | sed 's/.*\(....\)$/\1/' )
dn=$(( 5900 + $UID % 40000 ))
vncserver -kill :$dn || echo "vnc may have not been running"
rm -f /tmp/.X${dn}-lock