2012-10-12 03:25:07 +00:00
|
|
|
# arg 1: the new package version
|
|
|
|
# arg 2: the old package version
|
|
|
|
|
|
|
|
KERNEL_NAME=-kirkwood-dt
|
2018-03-01 01:15:12 +00:00
|
|
|
KERNEL_VERSION=4.15.6-1-ARCH
|
2012-10-12 03:25:07 +00:00
|
|
|
|
|
|
|
post_install () {
|
|
|
|
# updating module dependencies
|
|
|
|
echo ">>> Updating module dependencies. Please wait ..."
|
|
|
|
depmod ${KERNEL_VERSION}
|
|
|
|
|
|
|
|
echo "**********************************************************************"
|
|
|
|
echo "WARNING! This kernel package will NOT boot without user intervention."
|
|
|
|
echo ""
|
|
|
|
echo " A Kirkwood Flattened Device Tree supporting zImage is"
|
|
|
|
echo " placed in /boot and all mainline supported .dtb and .dts"
|
|
|
|
echo " files are in /boot/dtb for you to prep as appropriate."
|
|
|
|
echo ""
|
|
|
|
echo " Depending on your particular device, you may need to upgrade"
|
|
|
|
echo " your installed U-Boot version, and/or modify your boot env."
|
|
|
|
echo " Some platforms may need to append the appropriate .dtb to the"
|
|
|
|
echo " end of the zImage and make a uImage from the resulting blob."
|
|
|
|
echo ""
|
|
|
|
echo " If you are not familiar with the care and feeding of a DT"
|
|
|
|
echo " enabled kernel for your device, uninstall this package and"
|
2015-11-28 07:42:17 +00:00
|
|
|
echo " continue to use linux-kirkwood for now."
|
2012-10-12 03:25:07 +00:00
|
|
|
echo "**********************************************************************"
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
|
|
|
if grep "^[^#]*[[:space:]]/boot" etc/fstab 2>&1 >/dev/null; then
|
|
|
|
if ! grep "[[:space:]]/boot" etc/mtab 2>&1 >/dev/null; then
|
|
|
|
echo "WARNING: /boot appears to be a seperate partition but is not mounted."
|
|
|
|
echo " You probably just broke your system. Congratulations."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# updating module dependencies
|
|
|
|
echo ">>> Updating module dependencies. Please wait ..."
|
|
|
|
depmod ${KERNEL_VERSION}
|
2015-11-28 07:42:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
|
|
|
# also remove the compat symlinks
|
2018-03-01 01:15:12 +00:00
|
|
|
rm -f /boot/initramfs-linux.img
|
2012-10-12 03:25:07 +00:00
|
|
|
}
|