Last active
August 16, 2016 20:14
-
-
Save pamaury/a8dc2a5a816e68806e93277d932243e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# The updater script on the NWZ has a major bug/feature: | |
# it does NOT clear the update flag if the update scrit fails | |
# thus causing a update/reboot loop and a bricked device | |
# always clear to make sure we don't end up being screwed | |
nvpflag fup 0xFFFFFFFF | |
lcdmsg -c -f /usr/local/bin/font_08x12.bmp -l 0,10 "Rockbox me please !" | |
sleep 1 | |
/usr/local/bin/display lcd clear 255,0,0 | |
sleep 1 | |
msg=`mount 2>&1` | |
lcdmsg -c -f /usr/local/bin/font_08x12.bmp -l 0,10 "$msg" | |
sleep 10 | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment