diff --git a/iiab-install b/iiab-install index 3a9acd441..97dc04bd2 100755 --- a/iiab-install +++ b/iiab-install @@ -3,7 +3,7 @@ # Add cmdline options for passing to ansible # todo add proper shift to gobble up --debug --reinstall ARGS="" - +OLD_RPI_KERN="4.9.41-v7+" PLAYBOOK="iiab-stages.yml" INVENTORY="ansible_hosts" CWD=`pwd` @@ -20,14 +20,15 @@ if [ ! -f $PLAYBOOK ]; then fi if [ $OS = "raspbian" ]; then - echo "found" - REBOOT=`uname -a | grep 4.9.59-v7+ | wc -l` - if [ $REBOOT != 1 ]; then - echo "Please update your system with "apt update" then " - echo ""apt dist-upgrade" and reboot to install latest kernel" - exit 1 + echo "Found Raspbian" + ABORT=`uname -a | grep $OLD_RPI_KERN | wc -l` + if [ "$ABORT" == 1 ]; then + echo "Kernel "$OLD_RPI_KERN" is obsolete. Before running './iiab-install' you first need" + echo "to update your system with 'apt update' then 'apt dist-upgrade' then reboot." + echo "INSTALL INSTRUCTIONS: https://github.com/iiab/iiab/wiki/IIAB-Installation" + exit 1 else - echo "latest kernel installed - continuing" + echo "Kernel looks ok - continuing" fi fi