Final VNC tweaks

This commit is contained in:
Serge Schneider 2020-02-07 12:52:14 +00:00
parent de8477b500
commit 7936440427
2 changed files with 11 additions and 3 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
raspi-config (20200207) buster; urgency=medium
* Fix bug preventing VNC from being disabled
-- Serge Schneider <serge@raspberrypi.org> Fri, 07 Feb 2020 12:59:29 +0000
raspi-config (20200205) buster; urgency=medium raspi-config (20200205) buster; urgency=medium
* Add filter parameter to xrandr when setting pixel doubling * Add filter parameter to xrandr when setting pixel doubling

View File

@ -811,7 +811,7 @@ do_vnc() {
RET=$1 RET=$1
fi fi
if [ $RET -eq 0 ]; then if [ $RET -eq 0 ]; then
if is_installed realvnc-vnc-server || apt install -y realvnc-vnc-server; then if is_installed realvnc-vnc-server || apt-get install realvnc-vnc-server; then
systemctl enable vncserver-x11-serviced.service && systemctl enable vncserver-x11-serviced.service &&
systemctl start vncserver-x11-serviced.service && systemctl start vncserver-x11-serviced.service &&
STATUS=enabled STATUS=enabled
@ -819,8 +819,10 @@ do_vnc() {
return 1 return 1
fi fi
elif [ $RET -eq 1 ]; then elif [ $RET -eq 1 ]; then
if is_installed realvnc-vnc-server; then
systemctl disable vncserver-x11-serviced.service systemctl disable vncserver-x11-serviced.service
systemctl stop vncserver-x11-serviced.service systemctl stop vncserver-x11-serviced.service
fi
STATUS=disabled STATUS=disabled
else else
return $RET return $RET