PKGBUILDs/core/linux-chromebook2/linux-chromebook2.install
2014-06-16 01:07:05 +00:00

32 lines
779 B
Plaintext

# arg 1: the new package version
# arg 2: the old package versio
KERNEL_VERSION=3.8.0-ARCH
flash_kernel() {
echo "A new kernel version needs to be flashed onto /dev/mmcblk1p1."
echo "Do you want to do this now? [y|N]"
read -r shouldwe
if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
dd if=/boot/vmlinux.kpart of=/dev/mmcblk1p1
sync
else
echo "You can do this later by running:"
echo "# dd if=/boot/vmlinux.kpart of=/dev/mmcblk1p1"
fi
}
post_install () {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod ${KERNEL_VERSION}
flash_kernel
}
post_upgrade() {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod ${KERNEL_VERSION}
flash_kernel
}