Unverified Commit 23a51e01 authored by David Beniamine's avatar David Beniamine
Browse files

Fixups

parent 35ce7f35
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ DEBUG=true
log(){
    if $DEBUG
    then
        echo "$@" | tee /var/log/vp.log
        echo "$@" | tee -a /var/log/vp.log
    fi
}
log  "starting VP $(date)"
@@ -30,6 +30,7 @@ user=$(who | grep -v "root" | head -n 1 | cut -d ' ' -f 1)
if [ ! -z "$user" ]
then
	export DISPLAY=:0
    export LC_ALL="fr_FR.utf8"
	export XAUTHORITY="/home/$user/.Xauthority"
fi

@@ -197,7 +198,7 @@ then
    if [ "$code" -eq 1 ]
    then
        # give up
        return
        exit
    else
        # timeout
        log "timeout"