mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 12:10:07 +09:00
parent
f69ab6dc76
commit
cabd4289a6
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -2,6 +2,7 @@ raspi-config (20200109) UNRELEASED; urgency=medium
|
||||
|
||||
* Add proxy configuration
|
||||
* Handle cases where SUDO_USER is unset
|
||||
* Fix VNC options
|
||||
|
||||
-- Serge Schneider <serge@raspberrypi.org> Thu, 09 Jan 2020 14:38:50 +0000
|
||||
|
||||
|
17
raspi-config
17
raspi-config
@ -800,15 +800,18 @@ do_vnc() {
|
||||
RET=$1
|
||||
fi
|
||||
if [ $RET -eq 0 ]; then
|
||||
if [ ! -d /usr/share/doc/realvnc-vnc-server ] ; then
|
||||
apt-get install realvnc-vnc-server
|
||||
if [ -d /usr/share/doc/realvnc-vnc-server ] || apt-get install realvnc-vnc-server; then
|
||||
systemctl enable vncserver-x11-serviced.service &&
|
||||
systemctl start vncserver-x11-serviced.service &&
|
||||
STATUS=enabled
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
systemctl enable vncserver-x11-serviced.service &&
|
||||
systemctl start vncserver-x11-serviced.service &&
|
||||
STATUS=enabled
|
||||
elif [ $RET -eq 1 ]; then
|
||||
systemctl disable vncserver-x11-serviced.service &&
|
||||
systemctl stop vncserver-x11-serviced.service &&
|
||||
if [ ! -d /usr/share/doc/realvnc-vnc-server ] ; then
|
||||
systemctl disable vncserver-x11-serviced.service
|
||||
systemctl stop vncserver-x11-serviced.service
|
||||
fi
|
||||
STATUS=disabled
|
||||
else
|
||||
return $RET
|
||||
|
Loading…
Reference in New Issue
Block a user