Merge pull request #3508 from yopito/memtest86+

memtest86+: update grub boot config once installed or removed.
This commit is contained in:
Juan RP 2016-02-01 16:35:57 +01:00
commit d7648ad2b9
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"