#!/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