summaryrefslogtreecommitdiff
path: root/95-softdongl3.sh
diff options
context:
space:
mode:
Diffstat (limited to '95-softdongl3.sh')
-rwxr-xr-x95-softdongl3.sh21
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