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:
parent
651755f2ff
commit
3daf1aca2c
1 changed files with 9 additions and 8 deletions
17
iiab-install
17
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue