new strategy for vnc dn
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user