diff options
Diffstat (limited to 'flash.py')
| -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') |