1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Revise kernel warning on Raspbian

This commit is contained in:
Jerry Vonau 2017-11-06 22:22:30 -05:00
parent 651755f2ff
commit 3daf1aca2c

View file

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