mirror of
https://github.com/elliotnunn/ToolboxToolbox.git
synced 2024-09-27 03:55:23 +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/'
|