Fixups

parent 6e70dad6
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment