4
which update-grub >/dev/null 2>&1 || exit 0
6
set -- $DEB_MAINT_PARAMS
10
# Only run on postinst configure and postrm remove, to avoid wasting
11
# time by calling update-grub multiple times on upgrade and removal.
12
# Also run if we have no DEB_MAINT_PARAMS, in order to work with old
14
*/postinst.d/*:|*/postinst.d/*:configure|*/postrm.d/*:|*/postrm.d/*:remove)