#!/bin/sh hwclock -s BASE_DIR=/prime FILES="superdaemon superdaemon.ini app-prime-modbus app-prime-gui" for FILE in ${FILES} do FILE_PATH="${BASE_DIR}/${FILE}" HASH_PATH="${FILE_PATH}.md5" if [ ! -f ${FILE_PATH} -o ! -f ${HASH_PATH} ] then rm -rf ${BASE_DIR}/* cp -rf /falinux/* ${BASE_DIR} break fi FILE_HASH=`md5sum ${FILE_PATH} | awk '{print $1}'` HASH=`cat ${HASH_PATH}` if [ "${FILE_HASH}" != "${HASH}" ] then rm -rf ${BASE_DIR}/* cp -rf /falinux/* ${BASE_DIR} break fi done export QT_QPA_FB_TSLIB=1 export TSLIB_TSDEVICE=/dev/input/event0 export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:rotation=270 export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=/dev/input/event1 echo RGB24 > /sys/class/graphics/fb0/fsl_disp_fb_format cd ${BASE_DIR} ./superdaemon &