void-packages/srcpkgs/lilo/files/kernel.d/lilo.post-remove
2015-03-18 12:59:39 +01:00

14 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