Merge pull request #1160 from nmeum/lilo

lilo: Make hooks less verbose
This commit is contained in:
Juan RP 2015-03-18 16:46:05 +01:00
commit 8b4c9a06ef
3 changed files with 10 additions and 10 deletions

View file

@ -4,12 +4,10 @@
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
[ -x "$(command -v lilo)" ] || \
return 0
exit 0
if [ -e /etc/lilo.conf ]; then
lilo
elif [ ! -e /etc/lilo.conf ]; then
echo "Warning: Not updating LILO. Configuration file wasn't found." 1>&2
fi
[ -f /etc/lilo.conf ] && lilo

View file

@ -4,9 +4,11 @@
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
[ -x "$(command -v lilo)" ] || \
return 0
exit 0
# Do not abort in case of an error.
lilo || true
# Do not abort kernel removal on error.
[ -f /etc/lilo.conf ] && lilo || true

View file

@ -1,7 +1,7 @@
# Template file for 'lilo'
pkgname=lilo
version=24.1
revision=4
revision=5
only_for_archs="i686 x86_64"
hostmakedepends="bin86"
makedepends="device-mapper-devel"