yocto-autobuilder-helper/scripts/checkvnc
Richard Purdie 1cb54ada86 scripts/checkvnc: Add checkvnc script from old autobuilder codebase
Update the scripts to correctly reference the new script.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-30 13:22:16 +01:00

11 lines
228 B
Bash
Executable File

#!/bin/sh
#
# 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