Merge branch 'vnc-fix' into 'master'

Fix vncpass= boot option

See merge request systemrescue/systemrescue-sources!117
This commit is contained in:
Francois Dupoux 2021-11-08 22:28:53 +00:00
commit 8bf8c4a7ac

View file

@ -80,7 +80,10 @@ do
# Auto-start x11vnc with the graphical environment
dovnc)
echo "Found option '${curopt}' on the boot command line"
echo 'x11vnc -nevershared -forever -logfile /var/log/x11vnc.log &' > /root/.xprofile
{
echo '[ -f ~/.vnc/passwd ] && pwopt="-usepw" || pwopt="-nopw"'
echo 'x11vnc $pwopt -nevershared -forever -logfile /var/log/x11vnc.log &'
} > /root/.xprofile
;;
esac
done