Files
linux-3.16.37/SNAP/usher
Jay Larson 4c7bb6a047 The following changes were made:
* Added dependency for linux-firmware to kernel package
  * Re-built with updated Makefile.snaplinux to correct package name/version
  * Other various tweaks to correct package names and versions
  * etc/modprobe.d/usb.conf now managed by usher
  * Makefile will now use LOCALVERSION from config for the build version
2017-06-02 11:34:52 -05:00

34 lines
631 B
Bash
Executable File

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