vp-build/srcpkgs/lilo/files/kernel.d/lilo.post-remove

15 lines
246 B
Bash

#!/bin/sh
#
# Kernel hook for LILO.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
[ -x "$(command -v lilo)" ] || \
exit 0
# Do not abort kernel removal on error.
[ -f /etc/lilo.conf ] && lilo || true