REO NB1 ecu not recognized #3351

This commit is contained in:
rusefillc 2021-10-13 22:06:43 -04:00
parent 109e371c6f
commit 254e7aca5e
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,7 @@ for f in *.ini; do if [[ -f "$f" ]]; then
sig=$(grep "^ *signature *=" $f | cut -f2 -d "=")
if [ ! -z "$sig" -a "$sig" != " " ]; then
echo "* found signature: $sig"
if [[ "$sig" =~ rusEFI.*([0-9]{4})\.([0-9]{2})\.([0-9]{2})\.([a-zA-Z0-9_]+)\.([0-9]+) ]]; then
if [[ "$sig" =~ rusEFI.*([0-9]{4})\.([0-9]{2})\.([0-9]{2})\.([a-zA-Z0-9_-]+)\.([0-9]+) ]]; then
year=${BASH_REMATCH[1]}
month=${BASH_REMATCH[2]}
day=${BASH_REMATCH[3]}
@ -41,6 +41,8 @@ for f in *.ini; do if [[ -f "$f" ]]; then
exit 1
fi
echo "* upload done!"
else
echo "Unexpected $sig"
fi
fi
fi; done