|
@ -81,6 +81,9 @@ do |
|
|
shift |
|
|
shift |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
command -v flashrom >/dev/null 2>&1 || { echo -e >&2 "${RED}Please install flashrom and run as root${NC}."; exit 1; } |
|
|
|
|
|
command -v make >/dev/null 2>&1 || { echo -e >&2 "${RED}Please install make and a C compiler${NC}."; exit 1; } |
|
|
|
|
|
|
|
|
if [ ! "$have_flasher" -gt 0 ] ; then |
|
|
if [ ! "$have_flasher" -gt 0 ] ; then |
|
|
echo "Skulls for the X230" |
|
|
echo "Skulls for the X230" |
|
|
echo "" |
|
|
echo "" |
|
@ -119,8 +122,6 @@ else |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
hash flashrom || echo -e "${RED}Please install flashrom and run as root${NC}" |
|
|
|
|
|
|
|
|
|
|
|
TEMP_DIR=`mktemp -d` |
|
|
TEMP_DIR=`mktemp -d` |
|
|
if [ ! "$have_chipname" -gt 0 ] ; then |
|
|
if [ ! "$have_chipname" -gt 0 ] ; then |
|
|
echo "trying to detect the chip..." |
|
|
echo "trying to detect the chip..." |
|
@ -156,8 +157,6 @@ if [ ! "$have_chipname" -gt 0 ] ; then |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
hash make || echo -e "${RED}Please install make and a C compiler${NC}" |
|
|
|
|
|
|
|
|
|
|
|
make -C util/ifdtool |
|
|
make -C util/ifdtool |
|
|
if [ ! -e ${IFDTOOL_PATH} ] ; then |
|
|
if [ ! -e ${IFDTOOL_PATH} ] ; then |
|
|
echo "ifdtool not found at ${IFDTOOL_PATH}" |
|
|
echo "ifdtool not found at ${IFDTOOL_PATH}" |
|
|