lilo: Make hooks less verbose

This commit is contained in:
Sören Tempel 2015-03-18 12:59:39 +01:00
parent 5af217fb2c
commit 114d6df01b
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"