Skip to content

Instantly share code, notes, and snippets.

@pamaury
Created June 22, 2016 19:49
Show Gist options
  • Save pamaury/1bd21f04388132ce2c13e6092f508b35 to your computer and use it in GitHub Desktop.
Save pamaury/1bd21f04388132ce2c13e6092f508b35 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 "I want to be Rockbox'ed"
sleep 1
/usr/local/bin/display lcd clear 255,0,0
#/usr/local/bin/display lcd save 0,0 240,320 /contents/rb2.bmp 24
/usr/local/bin/display lcd bitmap 0,50 /contents/rb.bmp 0,0 50,50 no 0
sleep 10
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment