mirror of
https://github.com/elliotnunn/ToolboxToolbox.git
synced 2024-10-01 13:56:21 +00:00
6 lines
230 B
Bash
6 lines
230 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# USAGE: BootScriptExtractor <ROM >BOOTSCRIPT
|
||
|
|
||
|
head -c $((0x4000)) | LC_CTYPE=C tr -d '\0' | LC_CTYPE=C tr '\r' '\n' | awk 'f && /BOOT-SCRIPT/{exit} f{print} /BOOT-SCRIPT/{f=1}' | sed 's/# ...... const/# xxxxxx const/'
|