Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function do_patch() {
- if [ -f "/boot/${1}" ]; then
- cp "/boot/${1}" "/boot/${1}_backup"
- perl -pne 's/\x47\xE9362H\x'${2}'\x18/\x47\xE9362H\x'${2}'\x1F/g' < "/boot/${1}_backup" > "/boot/${1}"
- echo "Patched /boot/${1}..."
- fi
- }
- do_patch start.elf 3C
- do_patch start_x.elf 1D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement