* 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
34 lines
631 B
Bash
Executable File
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
|