diff options
| author | Kevin Wallace <kevin@pentabarf.net> | 2026-01-11 22:45:20 -0800 |
|---|---|---|
| committer | Kevin Wallace <kevin@pentabarf.net> | 2026-01-11 22:45:20 -0800 |
| commit | 35171482d4ba14095c1d069d484fe37bdbd39526 (patch) | |
| tree | 4bc507c0236e87cc4752335cbb67ad62044f1dee /95-softdongl3.sh | |
| parent | silkscreen: 24V -> 9-33V (diff) | |
softdongl3 autorun script to emulate eeprom payload
Diffstat (limited to '95-softdongl3.sh')
| -rwxr-xr-x | 95-softdongl3.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/95-softdongl3.sh b/95-softdongl3.sh new file mode 100755 index 0000000..20afe11 --- /dev/null +++ b/95-softdongl3.sh @@ -0,0 +1,21 @@ +#!/bin/sh +echo -n "softdongl3: " +if [ -e /tmp/eeprom.dat ] && grep -iq '^\[TestMode\]' /tmp/eeprom.dat; then + echo "TestMode detected, skipping" + exit 0 +fi +dev=/dev/disk/by-label/MP_SD +mp=/init/efad/mp_sd +if [ -f $mp -a -e $dev ]; then + rm $mp && mkdir $mp + mount -o noatime $dev $mp || (rmdir $mp 2>/dev/null && touch $mp) +fi +if [ -e $mp/autorun.sh ]; then + echo ok + systemctl stop nx.service + systemctl stop init-abtproxy + $NX_EXE watchdog 0 + sh $mp/autorun.sh +else + echo autorun.sh not on USB +fi |