summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wallace <kevin@pentabarf.net>2025-12-28 05:24:29 -0800
committerKevin Wallace <kevin@pentabarf.net>2025-12-29 05:56:08 -0800
commitc3d37d90697af9066a6ba00c8a2676b0c9e8d48a (patch)
tree1fa6e11de0ba4ae0c9ce9d5d31891c81b9b73315
parenti2c eeprom flash script (diff)
fmt
-rw-r--r--flash.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/flash.py b/flash.py
index 6a29159..eeb4371 100644
--- a/flash.py
+++ b/flash.py
@@ -12,7 +12,15 @@ ini = b"""
Fahrzeugadresse=11111111
MontageplattenNr=22222222
[TestMode]
-0=if [ -e /init/efad/mp_sd/autorun.sh ]; then systemctl stop init-abtproxy; sh /init/efad/mp_sd/autorun.sh; else systemctl --no-block start nx; fi
+0=echo -n "PROXdongl3: "
+1=if [ -e /init/efad/mp_sd/autorun.sh ]; then
+2= echo ok
+3= systemctl stop init-abtproxy
+4= sh /init/efad/mp_sd/autorun.sh
+5=else
+6= echo autorun.sh not on USB
+7= systemctl --no-block start nx
+8=fi
""".lstrip()
write_data = ini.strip().replace(b'\n', b'\r\n').ljust(size, b'\xff')