Advertisement
zefie

Pi Unlock All Codec Licenses Patch (start.elf + start_x.elf)

Oct 28th, 2018
3,744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. function do_patch() {
  4. if [ -f "/boot/${1}" ]; then
  5. cp "/boot/${1}" "/boot/${1}_backup"
  6. perl -pne 's/\x47\xE9362H\x'${2}'\x18/\x47\xE9362H\x'${2}'\x1F/g' < "/boot/${1}_backup" > "/boot/${1}"
  7. echo "Patched /boot/${1}..."
  8. fi
  9. }
  10.  
  11. do_patch start.elf 3C
  12. do_patch start_x.elf 1D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement