kernel: update to 2.6.30.4.
Added an INSTALL script that updates GRUB's menu.lst file at post-installation time... simple but will be improved later. --HG-- extra : convert_revision : 0ce38f532a8e8d2bfdef21dcd35fe0562732ad09
This commit is contained in:
parent
6443338d35
commit
8398b6ccaa
|
@ -0,0 +1,27 @@
|
|||
#
|
||||
# This script adds an entry to grub's menu.lst file.
|
||||
#
|
||||
menulst=boot/grub/menu.lst
|
||||
|
||||
case "${ACTION}" in
|
||||
pre)
|
||||
;;
|
||||
post)
|
||||
if [ ! -f $menulst ]; then
|
||||
echo "default 0" >> $menulst
|
||||
echo "timeout 5" >> $menulst
|
||||
fi
|
||||
|
||||
if grep -q "^title XBPS ${PKGNAME}-${VERSION}$" $menulst; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Updating GRUB's menu.lst for kernel-${VERSION}..."
|
||||
( \
|
||||
echo; \
|
||||
echo "title XBPS ${PKGNAME}-${VERSION}"; \
|
||||
echo "kernel /boot/vmlinuz-${VERSION} ro quiet root=LABEL=root"; \
|
||||
echo "initrd /boot/initrd.img-${VERSION}"; \
|
||||
) >> $menulst
|
||||
;;
|
||||
esac
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'kernel'
|
||||
pkgname=kernel
|
||||
version=2.6.30.3
|
||||
version=2.6.30.4
|
||||
wrksrc="linux-$version"
|
||||
distfiles="${KERNEL_SITE}/kernel/v2.6/linux-$version.tar.bz2"
|
||||
build_style=gnu_makefile
|
||||
|
@ -9,7 +9,7 @@ make_install_target="modules_install
|
|||
INSTALL_MOD_PATH=${XBPS_DESTDIR}/${pkgname}-${version}"
|
||||
short_desc="The Linux kernel and associated stuff (2.6 branch)"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=b628c14683b9ab36f28edc69bfcbf1e463ee1af909899ad4f49cf052db1e80d2
|
||||
checksum=b52d3949219d912763f6614f1c68d51018f820ca6267f8d194dd5ac8b85159b8
|
||||
long_desc="
|
||||
This package provides the linux kernel image, kernel modules
|
||||
and firmware files."
|
||||
|
|
Loading…
Reference in New Issue