From 4980e365ae205d89137105511de7e8858dca05b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 1 May 2017 13:59:33 +0200 Subject: fix postinst and prerm function names --- sys-kernel/linux/linux-4.10.13.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-kernel') diff --git a/sys-kernel/linux/linux-4.10.13.ebuild b/sys-kernel/linux/linux-4.10.13.ebuild index f9d648b..c1c88a8 100644 --- a/sys-kernel/linux/linux-4.10.13.ebuild +++ b/sys-kernel/linux/linux-4.10.13.ebuild @@ -31,14 +31,14 @@ src_install() { newins "${S}/arch/$ARCH/boot/bzImage" "bzlinux-${PV}" } -src_postinst() { +pkg_postinst() { # Add label to syslinux config if there is non yet if ! grep -q "^LABEL gentoo-${PV}$" /boot/syslinux/syslinux.cfg; then sed -i "/^## Dynamic labels ##$/a LABEL gentoo-${PV}\n\tMENU LABEL Gentoo${PV}\n\tLINUX ../bzlinux-${PV}\n\tAPPEND root=/dev/sda2 rootflags=subvol=@gentoo\n\tINITRD ../initramfs-gentoo\n" /boot/syslinux/syslinux.cfg || eerror "Adding label to syslinux configuration failed!" fi } -src_prerm() { +pkg_prerm() { # Remove label from syslinux config sed -i "/^LABEL gentoo-${PV}$/,/^$/d" /boot/syslinux/syslinux.cfg || eerror "Removing label from syslinux fonfiguration failed!" } -- cgit v1.2.3