Commit c85b2b79d4e070e7cf76dfa201b0d5f321a109b7
1 parent
ad10e72b43
Exists in
master
and in
2 other branches
run.sh 추가, 해시 파일 생성 스크립트 추가
Showing
2 changed files
with
41 additions
and
0 deletions
Show diff stats
files/run.sh
... | ... | @@ -0,0 +1,34 @@ |
1 | +#!/bin/sh | |
2 | + | |
3 | +BASE_DIR=/prime | |
4 | +FILES="superdaemon superdaemon.ini app-prime-modbus app-prime-gui" | |
5 | + | |
6 | +for FILE in ${FILES} | |
7 | +do | |
8 | + FILE_PATH="${BASE_DIR}/${FILE}" | |
9 | + HASH_PATH="${FILE_PATH}.md5" | |
10 | + if [ ! -f ${FILE_PATH} -o ! -f ${HASH_PATH} ] | |
11 | + then | |
12 | + rm -rf ${BASE_DIR}/* | |
13 | + cp -rf /falinux/* ${BASE_DIR} | |
14 | + break | |
15 | + fi | |
16 | + | |
17 | + FILE_HASH=`md5sum ${FILE_PATH} | awk '{print $1}'` | |
18 | + HASH=`cat ${HASH_PATH}` | |
19 | + | |
20 | + if [ "${FILE_HASH}" != "${HASH}" ] | |
21 | + then | |
22 | + rm -rf ${BASE_DIR}/* | |
23 | + cp -rf /falinux/* ${BASE_DIR} | |
24 | + break | |
25 | + fi | |
26 | +done | |
27 | + | |
28 | +export QT_QPA_FB_TSLIB=1 | |
29 | +export TSLIB_TSDEVICE=/dev/input/event0 | |
30 | +export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:rotation=270 | |
31 | +export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=/dev/input/event1 | |
32 | + | |
33 | +cd ${BASE_DIR} | |
34 | +./superdaemon & | ... | ... |
scripts/mk-app.sh