2015-02-14 15:57:45 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Kernel hook for LILO.
|
|
|
|
#
|
|
|
|
# Arguments passed to this script: $1 pkgname, $2 version.
|
|
|
|
#
|
2015-03-18 11:59:39 +00:00
|
|
|
PKGNAME="$1"
|
|
|
|
VERSION="$2"
|
2015-02-14 15:57:45 +00:00
|
|
|
|
2015-03-18 10:50:08 +00:00
|
|
|
[ -x "$(command -v lilo)" ] || \
|
2015-03-18 11:59:39 +00:00
|
|
|
exit 0
|
2015-02-14 15:57:45 +00:00
|
|
|
|
2015-03-18 11:59:39 +00:00
|
|
|
# Do not abort kernel removal on error.
|
|
|
|
[ -f /etc/lilo.conf ] && lilo || true
|