diff options
| author | Kevin Wallace <kevin@pentabarf.net> | 2026-05-19 15:58:27 -0700 |
|---|---|---|
| committer | Kevin Wallace <kevin@pentabarf.net> | 2026-05-19 15:58:27 -0700 |
| commit | 0c178eacb4e3a421b4c2a8e5d671b09fcc4453f2 (patch) | |
| tree | c393b117fb1f9f3fc24b1b7fbe05f073848d3152 /flash.py | |
| parent | tweak routing (diff) | |
prevent nx or init-abtproxy from starting even when usb is missingtoorcamp
Diffstat (limited to 'flash.py')
| -rw-r--r-- | flash.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -9,7 +9,8 @@ size = 0x2000 ini = b""" [TestMode] -0=echo -n "PROXdongl3: " +0=echo -n "deer fact: " +0=systemctl stop init-abtproxy 0=dev=/dev/disk/by-label/MP_SD 0=mp=/init/efad/mp_sd 0=if [ -f $mp -a -e $dev ]; then @@ -17,12 +18,10 @@ ini = b""" 0= mount -o noatime $dev $mp || (rmdir $mp 2>/dev/null && touch $mp) 0=fi 0=if [ -e $mp/autorun.sh ]; then -0= echo ok -0= systemctl stop init-abtproxy +0= echo "there's no rule that says a deer can't ride the bus" 0= sh $mp/autorun.sh 0=else 0= echo autorun.sh not on USB -0= systemctl --no-block start nx 0=fi """.lstrip() write_data = ini.strip().replace(b'\n', b'\r\n').ljust(size, b'\xff') |