thinkpad-ec/xx30.encrypt
2016-04-23 14:02:28 +10:00

28 lines
432 B
Bash
Executable File

#!/bin/bash
#
# Quick and dirty extracter to get the EC image out of the iso file
# Copyright (C) 2016 Hamish Coleman
#
# TODO:
# - a tool that is portable to Windows
# - should output dependancy information
INP="$1"
if [ -z "$INP" ]; then
echo Need input filename
exit 1
fi
shift
OUT="$1"
if [ -z "$OUT" ]; then
echo Need output filename
exit 1
fi
shift
set -x
cd mec-tools && ./mec_repack "../$INP" "../$OUT"