memtest86+: update grub boot config once installed or removed.
This commit is contained in:
parent
f00bb1de58
commit
a851aeb953
13
srcpkgs/memtest86+/INSTALL
Normal file
13
srcpkgs/memtest86+/INSTALL
Normal 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
13
srcpkgs/memtest86+/REMOVE
Normal 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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user