Skip to content

Instantly share code, notes, and snippets.

@pamaury
Last active August 16, 2016 20:14
Show Gist options
  • Save pamaury/a8dc2a5a816e68806e93277d932243e2 to your computer and use it in GitHub Desktop.
Save pamaury/a8dc2a5a816e68806e93277d932243e2 to your computer and use it in GitHub Desktop.
#!/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