memtest86+: update grub boot config once installed or removed.

This commit is contained in:
yopito 2016-02-01 16:21:06 +01:00
parent f00bb1de58
commit a851aeb953
3 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,13 @@
# grub: follows /etc/kernel.d/post-install/50-grub actions
case ${ACTION} in
post)
RESULT=1
if command -v grub-mkconfig >/dev/null 2>&1; then
if [ -d $ROOTDIR/boot/grub ]; then
grub-mkconfig -o $ROOTDIR/boot/grub/grub.cfg
RESULT=$?
fi
fi
[ $RESULT -ne 0 ] && exit $RESULT
;;
esac

13
srcpkgs/memtest86+/REMOVE Normal file
View File

@ -0,0 +1,13 @@
# grub: follows /etc/kernel.d/post-install/50-grub actions
case ${ACTION} in
post)
RESULT=1
if command -v grub-mkconfig >/dev/null 2>&1; then
if [ -d $ROOTDIR/boot/grub ]; then
grub-mkconfig -o $ROOTDIR/boot/grub/grub.cfg
RESULT=$?
fi
fi
[ $RESULT -ne 0 ] && exit $RESULT
;;
esac

View File

@ -1,7 +1,7 @@
# Template file for 'memtest86+'
pkgname=memtest86+
version=5.01
revision=2
revision=3
homepage="http://www.memtest.org"
distfiles="http://www.memtest.org/download/$version/$pkgname-$version.tar.gz"
short_desc="An Advanced Memory Diagnostic Tool"