33 Commits

Author SHA1 Message Date
5c85a294d5 Adding git hook post-checkout. 2023-04-12 14:22:17 +02:00
0f5c66fccc Update ATBAPP config 2023-04-04 08:59:21 +02:00
58e833b3a6 Update gitignore 2023-04-04 08:58:45 +02:00
48a299002c gitignore: do not track application default ini files 2023-04-04 08:04:54 +02:00
91130d96f0 SystemControl: Fix: config: AT_TASKS configuration 2023-04-03 14:50:59 +02:00
b115f3dfb8 SystemControl: config: add AT_TASKS configuration 2023-04-03 13:52:13 +02:00
76c4663d8f TEST: change SystemControl.ini 2023-04-03 11:18:30 +02:00
7462ce9e12 Merge branch 'zg1/zone1' of git.mimbach49.de:GerhardHoffmann/customer_281 into zg1/zone1 2023-04-03 11:17:50 +02:00
1480313fd0 add empty lines 2023-04-03 10:53:26 +02:00
a17bcb8b17 Updatetest 2023-04-03 10:26:22 +02:00
469ecbc482 Add initial SystemControl.ini 2023-04-03 09:54:08 +02:00
273e6a8422 datumseintrag 2023-04-03 08:51:28 +02:00
1bfbfbb670 Removed *.ini-Files. 2023-03-31 11:47:49 +02:00
4071d8ea14 Removed *ini-Files. 2023-03-31 11:42:27 +02:00
f383f8282e aset fsize only when file exists 2023-03-31 10:13:16 +02:00
2bcc19f9f6 rm test file 2023-03-31 10:09:10 +02:00
094fc2ef9a removed 'local' keyword 2023-03-31 09:39:16 +02:00
ba690aea25 Add .gitignore file 2023-03-31 09:37:10 +02:00
5b57d0704c testing 2023-03-31 09:06:53 +02:00
cc75917193 Fixed typo 2023-03-31 09:01:13 +02:00
5f3a7608ba testing 2023-03-31 09:00:01 +02:00
b6b37ec0c0 testing 2023-03-31 08:57:17 +02:00
8a64c8bcdc testing 2023-03-31 08:55:27 +02:00
d0574c6574 testing 2023-03-31 08:50:06 +02:00
ef1b9e6add testing 2023-03-31 08:48:22 +02:00
ef5bb0e182 rm empty test binary 2023-03-31 07:58:31 +02:00
3c97eaf7d8 test 2023-03-30 13:13:12 +02:00
5293268086 Add empty test bin 2023-03-30 12:56:35 +02:00
d96a34d875 Add handling for binary dc-files 2023-03-30 12:46:04 +02:00
4d48b9bcc3 Add binary device controller file (29/03/2023) 2023-03-30 12:37:29 +02:00
8c736577fe Update to version dc2c.4.11.hex 2023-03-30 09:31:23 +02:00
9b2d7c77f6 commit test 2023-03-28 16:05:28 +02:00
998c44fd5c Test for change of json 2023-03-28 15:28:13 +02:00
9 changed files with 6349 additions and 6066 deletions

1
.githooks/post-checkout Executable file
View File

@@ -0,0 +1 @@
echo "POST-CHECKOUT"

View File

@@ -11,35 +11,19 @@ if [ -z $IFS ]; then
IFS=$'\n' IFS=$'\n'
fi fi
GIT_PULL_TMP=/tmp/git_changed_files_for_last_pull GIT_PULL_TMP=/tmp/git_pull
OPKG_CMDS_TMP=/tmp/opkg_commands OPKG_CMDS_TMP=/tmp/opkg_commands
rm -f $GIT_PULL_TMP rm -f $GIT_PULL_TMP
rm -f $OPKG_CMDS_TMP rm -f $OPKG_CMDS_TMP
get_blob () { # get the blob of the file(name) passed as $1
# note: this can be used for any file in the filesystem
echo $(git hash-object $1)
}
get_commit_for_blob () {
# search for the blob in all commits for the file(name) $1
echo $(git log --all --pretty=format:%H -- $2 |
xargs -I{} bash -c "git ls-tree {} -- $2 |
grep -q $1 && echo -n {} && head -n 1")
}
for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do
if grep -E -q "(DC.*json|dc.*hex|dc.*bin|tariff.*json)" <<< $fn; then if grep -E -q "(DC.*json|dc.*hex|dc.*bin|tariff.*json)" <<< $fn; then
# called in repository: $fn is e.g. etc/psa_tariff/tariff01.json fsize=0
# add '/' prefix
fn=$(echo $fn | awk '{ printf "/"$0 }')
if [[ -f "$fn" ]]; then if [[ -f "$fn" ]]; then
blob=$(get_blob "$fn")
commit=$(get_commit_for_blob $blob "$fn")
fsize=$(ls -l "$fn" | awk '{ print $5 }') fsize=$(ls -l "$fn" | awk '{ print $5 }')
echo "$fn $fsize $blob $commit" >> $GIT_PULL_TMP
fi fi
echo "$fn $fsize" >> $GIT_PULL_TMP
fi fi
if grep -E -q ".*opkg_commands" <<< $fn; then if grep -E -q ".*opkg_commands" <<< $fn; then
readarray opkg_commands < <(cat $fn) readarray opkg_commands < <(cat $fn)

31
.gitignore vendored
View File

@@ -1,16 +1,25 @@
# First, ignore everything
* *
# Now, whitelist anything that's a directory
## Except !*/
# And all the file types you're interested in
!.gitignore
!.githooks/post-merge
!**/.gitignore !**/.gitignore
!**/.githooks/post-merge !**/.githooks/post-merge
!/etc/*.ini
!/etc/atb/*.ini
!/etc/psa_config/*
!/etc/psa_update/*
!/etc/psa_tariff/*
!/etc/dc/dc2c.hex
!/opt/app/ATBAPP/*.ini ## Except
!/opt/app/sysconfig/*.ini !etc/atb/*
!/opt/app/ISMASMgr/*.ini !etc/psa_config/*
!etc/psa_update/*
!etc/psa_tariff/*
!etc/dc/*.hex
!etc/dc/*.bin
!*/etc/*.ini
!*/etc/atb/*
!*/etc/psa_config/*
!*/etc/psa_update/*
!*/etc/psa_tariff/*
!*/etc/dc/*.hex
!*/etc/dc/*.bin

View File

@@ -24,7 +24,7 @@ useVehicle=240
#useProduct=[128+][64+][32+][16+][8] #useProduct=[128+][64+][32+][16+][8]
useProduct=240 useProduct=240
textfile=/opt/app/ATBAPP/text/HMI_Texte.xml textfile=/opt/app/ATBQT/text/HMI_Texte.xml
logfile=/var/log/atbqt.log logfile=/var/log/atbqt.log
alternativeLogoFile= alternativeLogoFile=
@@ -54,7 +54,6 @@ showInfoButton=false
showHelpButton=false showHelpButton=false
useAppStates=1 useAppStates=1
statefile=/opt/app/ATBAPP/states/APP_States.xml
[SCREENCONFIG] [SCREENCONFIG]
sc_31="1,1,0" sc_31="1,1,0"
@@ -71,7 +70,6 @@ sc_53="1,0,0"
[PLUGINS] [PLUGINS]
CCPlugin=IngenicoISelf_CCPlugin CCPlugin=IngenicoISelf_CCPlugin
CalculatePricePlugin=MOBILISIS_CalculatePricePlugin CalculatePricePlugin=MOBILISIS_CalculatePricePlugin
DeviceControllerPlugin=ATBDeviceControllerPlugin
[IngenicoISelf_CCPlugin] [IngenicoISelf_CCPlugin]
@@ -96,5 +94,4 @@ paymentPointInTime=poa
[MOBILISIS_CalculatePricePlugin] [MOBILISIS_CalculatePricePlugin]
useDebug=1 useDebug=1
[ATBDeviceControllerPlugin]
serialPort=ttymxc2

View File

@@ -46,6 +46,5 @@ networkRestart="/sbin/ifup -a"
size=1 size=1
1\id=PTU5UPDATE 1\id=PTU5UPDATE
1\program="/opt/app/tools/atbupdate/PTUGitInstaller" 1\program="/opt/app/tools/atbupdate/PTUGitInstaller"
1\arguments=-q,--platform,wayland 1\arguments="-q,--platform,wayland"
1\envs=QT_QPA_EGLFS_KMS_ATOMIC=1,QT_QPA_EGLFS_ALWAYS_SET_MODE=1,XDG_RUNTIME_DIR=/var/run/user/0
1\hourOfDay=1 1\hourOfDay=1

BIN
etc/dc/dc2c.4.11.bin Executable file

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -2,5 +2,5 @@
"title":"DC2C_pri32", "title":"DC2C_pri32",
"version":"27.02.2023 12:20 00001", "version":"27.02.2023 12:20 00001",
"":"", "":"",
"":"10001" "":"8:50 3.April"
} }

File diff suppressed because one or more lines are too long