From de8477b5009c82614abac1bf0da43836a8208acc Mon Sep 17 00:00:00 2001 From: Simon Long Date: Thu, 6 Feb 2020 13:26:56 +0000 Subject: [PATCH] Improve test for VNC server being enabled --- raspi-config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raspi-config b/raspi-config index 72960f2..845474f 100755 --- a/raspi-config +++ b/raspi-config @@ -792,10 +792,10 @@ do_ssh() { } get_vnc() { - if systemctl status vncserver-x11-serviced.service | grep -q inactive; then - echo 1 - else + if systemctl status vncserver-x11-serviced.service | grep -q -w active; then echo 0 + else + echo 1 fi }