c85b2b79d
김태훈
run.sh 추가, 해시 파일 ...
|
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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
|