check kernel upgrade
This commit is contained in:
@@ -1,8 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
CURRENT="$(ls -1 /boot)"
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get dist-upgrade --yes
|
apt-get dist-upgrade --yes
|
||||||
|
|
||||||
|
NEW="$(ls -1 /boot)"
|
||||||
|
|
||||||
|
if [ "$CURRENT" -ne "$NEW" ]; then
|
||||||
|
echo "It looks like your kernel has been upgraded."
|
||||||
|
echo "You should reboot and restart the build process."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
# if kernel was upgraded, you may need to reboot
|
# if kernel was upgraded, you may need to reboot
|
||||||
apt-get install --yes --no-install-recommends mc squashfs-tools genisoimage zip unzip psmisc net-tools \
|
apt-get install --yes --no-install-recommends mc squashfs-tools genisoimage zip unzip psmisc net-tools \
|
||||||
alsa-utils man less xz-utils ca-certificates openssl acpid acpi-support-base powermgmt-base bzip2 gpart \
|
alsa-utils man less xz-utils ca-certificates openssl acpid acpi-support-base powermgmt-base bzip2 gpart \
|
||||||
|
|||||||
Reference in New Issue
Block a user