mirror of
https://git.proxmox.com/git/proxmox-kernel-helper
synced 2025-08-16 05:40:43 +00:00
20 lines
409 B
Bash
20 lines
409 B
Bash
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
install|upgrade)
|
|
if ! dpkg -S /usr/sbin/grub-install|grep -q 'diversion by proxmox-kernel-helper'; then
|
|
dpkg-divert --package proxmox-kernel-helper --add --rename \
|
|
--divert /usr/sbin/grub-install.real /usr/sbin/grub-install
|
|
fi
|
|
;;
|
|
*)
|
|
echo "ignoring unknown preinst command '$1'"
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|