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