yocto-autobuilder-helper/scripts/checkvnc
Richard Purdie 8702fdbb72 Clarify license and copyright information
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-05-17 10:29:45 +01:00

270 B
Executable File

#!/bin/sh

SPDX-License-Identifier: GPL-2.0-only

check if vnc server is running, and if not, cleanup and restart

grep ':170D' /proc/net/tcp > /dev/null if [ $? != 0 ]; then echo "Xvnc not running, attempting restart" vncserver -kill :1 vncserver fi