thinkpad-ec/x230.G2HT35WW.extract

21 lines
393 B
Plaintext
Raw Normal View History

2016-04-19 09:39:23 +00:00
#!/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
OUT="$1"
if [ -z "$OUT" ]; then
2016-04-19 09:39:23 +00:00
echo Need output filename
exit 1
fi
OUT1="${OUT}.enc"
2016-04-19 09:39:23 +00:00
dd if=g2uj23us.iso.orig bs=$[0x1076600] skip=1 | dd bs=196608 count=1 of="$OUT1"
2016-04-19 09:39:23 +00:00
mec-tools/mec_encrypt -d "$OUT1" >"$OUT"
2016-04-19 09:39:23 +00:00