Files
linux-3.16.37/SNAP/usher
Jay Larson 3150e81315 The following changes were made:
* Added SHELL = /bin/bash to Makefile
  * Added REPO (core)
  * Added grub as dependency
  * Added bc and gcc as BUILDDEPS
  * Removed modules.dep from package
  * Added Module.symvers to package
2018-03-22 11:01:02 -05:00

30 lines
499 B
Bash
Executable File

#!/bin/bash
set -e
case $1 in
preinst)
exit 0
;;
postinst)
echo "Running for kernel ${VERSION}"
mkinitramfs ${VERSION}
grub-mkconfig -o /boot/grub/grub.cfg
if [ ! -f /etc/modprobe.d/usb.conf ]; then
cp /usr/share/linux-${VERSION}/usb.conf /etc/modprobe.d/usb.conf
fi
;;
prerm)
exit 0
;;
postrm)
if [ -f /boot/initrd.img-${VERSION} ]; then
rm /boot/initrd.img-${VERSION}
fi
grub-mkconfig -o /boot/grub/grub.cfg
;;
esac