Browse Source

x230: add better error messages for programs not found

pull/35/head
Martin Kepplinger 6 years ago
parent
commit
ffa93851b7
3 changed files with 7 additions and 1 deletions
  1. +4
    -0
      x230/external_install_bottom.sh
  2. +2
    -0
      x230/external_install_top.sh
  3. +1
    -1
      x230/x230_before_first_install.sh

+ 4
- 0
x230/external_install_bottom.sh View File

@ -115,6 +115,8 @@ 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..."
@ -150,6 +152,8 @@ 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}"


+ 2
- 0
x230/external_install_top.sh View File

@ -134,6 +134,8 @@ 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..."


+ 1
- 1
x230/x230_before_first_install.sh View File

@ -44,7 +44,7 @@ do
shift
done
hash dmidecode
hash dmidecode || echo -e "Please install dmidecode and run as root"
LAPTOP=$(dmidecode | grep -i x230 | sort -u)
if [ -z "$LAPTOP" ] ; then


Loading…
Cancel
Save