diff options
| author | Kevin Wallace <kevin@pentabarf.net> | 2025-12-28 05:24:29 -0800 |
|---|---|---|
| committer | Kevin Wallace <kevin@pentabarf.net> | 2025-12-29 05:56:08 -0800 |
| commit | c3d37d90697af9066a6ba00c8a2676b0c9e8d48a (patch) | |
| tree | 1fa6e11de0ba4ae0c9ce9d5d31891c81b9b73315 | |
| parent | i2c eeprom flash script (diff) | |
fmt
| -rw-r--r-- | flash.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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') |