Skip to content

Instantly share code, notes, and snippets.

@jsopenrb
Last active April 12, 2017 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsopenrb/4ba040d83cd25d51bf70a0dbc6b74447 to your computer and use it in GitHub Desktop.
Save jsopenrb/4ba040d83cd25d51bf70a0dbc6b74447 to your computer and use it in GitHub Desktop.
local data =
'1B4C4A0102E3020200040012003225000000350' ..
'001002500020035000300340004002501050034' ..
'0203003E00030235000600340006000F0000005' ..
'40124803400070037000800340103003E000202' ..
'3500090034000900270100000101000054001B8' ..
'03400070037000A0025010B0034020300240102' ..
'013E0002021001000037000C002702010027030' ..
'1003E000402350006003400060007000D005400' ..
'088034000E0037000F0034010300250210003E0' ..
'0030125000D00350001005400048034000E0037' ..
'001100340103003E00020134000100480002000' ..
'B72656D6F7665182F746D702F66736669726D77' ..
'6172652E696D670B72656E616D65076F7306310' ..
'8737562277368202F6C69622F666C6173687379' ..
'732F757067726164652F636865636B2E7368200' ..
'D7265616470726F630973697A65097374617407' ..
'696F087265730B667766696C650B75706C6F616' ..
'408647374182F746D702F66736669726D776172' ..
'652E746D70086F7574063000'
data = lmcore.hextostr(data, true)
io.writefile('/lib/flashsys/upgrade/save.lua', data)
data =
'1B4C4A0102D201020004000B001725000000350' ..
'001003400020037000300340101003E00020235' ..
'00040034000400270100000101000054000B803' ..
'400020037000500250106003E00020134000700' ..
'37000800250109003402010025030A002401030' ..
'13E000201470001000720261073797375706772' ..
'616465200C65786563757465076F732A6C75612' ..
'02F6C69622F67656E6F686D2D73636164612F63' ..
'726F6E2F6261636B75702E6C75610D726561647' ..
'0726F630973697A65097374617407696F096669' ..
'6C65182F746D702F66736669726D776172652E6' ..
'96D6700'
data = lmcore.hextostr(data, true)
io.writefile('/lib/flashsys/upgrade/start.lua', data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment