Fixups

parent 35ce7f35
...@@ -21,7 +21,7 @@ DEBUG=true ...@@ -21,7 +21,7 @@ DEBUG=true
log(){ log(){
if $DEBUG if $DEBUG
then then
echo "$@" | tee /var/log/vp.log echo "$@" | tee -a /var/log/vp.log
fi fi
} }
log "starting VP $(date)" log "starting VP $(date)"
...@@ -30,6 +30,7 @@ user=$(who | grep -v "root" | head -n 1 | cut -d ' ' -f 1) ...@@ -30,6 +30,7 @@ user=$(who | grep -v "root" | head -n 1 | cut -d ' ' -f 1)
if [ ! -z "$user" ] if [ ! -z "$user" ]
then then
export DISPLAY=:0 export DISPLAY=:0
export LC_ALL="fr_FR.utf8"
export XAUTHORITY="/home/$user/.Xauthority" export XAUTHORITY="/home/$user/.Xauthority"
fi fi
...@@ -197,7 +198,7 @@ then ...@@ -197,7 +198,7 @@ then
if [ "$code" -eq 1 ] if [ "$code" -eq 1 ]
then then
# give up # give up
return exit
else else
# timeout # timeout
log "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