Rebuild for new sl package manager

This commit is contained in:
2020-07-20 13:38:15 -05:00
parent 3150e81315
commit 116d545948
12 changed files with 3805 additions and 25 deletions

29
SL/usher Executable file
View File

@@ -0,0 +1,29 @@
#!/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