You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
thinkpad-ec/x230.G2HT35WW.extract

21 lines
412 B
Bash

#!/bin/bash
#
# Quick and dirty extracter to get the EC image out of the iso file
#
# TODO:
# - a tool that is portable to Windows
# - should output dependancy information
OUTPUT="$1"
if [ -z "$OUTPUT" ]; then
echo Need output filename
exit 1
fi
OUT1="${OUTPUT}.encrypted.orig"
dd if=g2uj23us.iso bs=$[0x01076600] skip=1 | dd bs=196608 count=1 of="$OUT1"
mec-tools/mec_encrypt -d "$OUT1" >"$OUTPUT"