CCilot XA and CCpilot XS
Product revision: 0.12
Software guide
2018-03-19
www.crosscontrol.com
26
#!/bin/sh
. /etc/init.d/cross-common
#
# END USER: Replace this with your own application.
# Take care using correct Qt flags.
#
APPLICATION_PATH="/ usr/bin"
APPLICATION="StartupLauncherGui"
#
# END USER: To enable VNC, change following value from 0 to 1
#
# There will be performance penalty when VNC is enabled even if
# VNC connection is not open.
#
USE_VNC=0
####
RESOLUTION=$(get_display_resolution )
DEFAULT_RESOLUTION="1024x768"
case "$1" in
start)
if [ -z $RESOLUTION ] ; then
RESOLUTION=$DEFAULT_RESOLUTION
fi
if check_feature DISPLAY || check_feature EXTDISPLAY; then
if [ $USE_VNC -ne 0 ]; then
( QWS_KEYBOARD="LinuxInput:/dev/kb0 LinuxInput:/dev/kb1 \
LinuxInput:/dev/kb2" \
QWS_MOUSE_PROTO="LinuxInput:/dev/touch0 \
MouseMan:/dev/mouse0" \
$APPLICATION_PATH/$APPLICATION -qws -display "Multi: \
transformed: VNC::size=${RESOLUTION}:depth=32:0" &> \
/dev/null & )
Else
( QWS_KEYBOARD="LinuxInput:/dev/kb0 LinuxInput:/dev/kb1 \
LinuxInput:/dev/kb2" \
QWS_MOUSE_PROTO="LinuxInput:/dev/touch0 \
MouseMan:/dev/mouse0" \
$APPLICATION_PATH/$APPLICATION -qws -display transformed \ &>
/dev/null & )
fi
else
# Display less unit supports only VNC
if [ $USE_VNC -ne 0 ]; then
( QWS_KEYBOARD="LinuxInput:/dev/kb0 LinuxInput:/dev/kb1 \
LinuxInput:/dev/kb2" \
QWS_MOUSE_PROTO="LinuxInput:/dev/touch0 \