source: grub-pc/trunk/fuentes/debian/kernel/zz-update-grub @ 22

Last change on this file since 22 was 22, checked in by mabarracus, 4 years ago

updated version and apply net.ifnames=0 into debian/rules

  • Property svn:executable set to *
File size: 641 bytes
Line 
1#! /bin/sh
2set -e
3
4which update-grub >/dev/null 2>&1 || exit 0
5
6if type running-in-container >/dev/null 2>&1 && \
7   running-in-container >/dev/null; then
8        exit 0
9fi
10
11set -- $DEB_MAINT_PARAMS
12mode="${1#\'}"
13mode="${mode%\'}"
14case $0:$mode in
15    # Only run on postinst configure and postrm remove, to avoid wasting
16    # time by calling update-grub multiple times on upgrade and removal.
17    # Also run if we have no DEB_MAINT_PARAMS, in order to work with old
18    # kernel packages.
19    */postinst.d/*:|*/postinst.d/*:configure|*/postrm.d/*:|*/postrm.d/*:remove)
20        if [ -e /boot/grub/grub.cfg ]; then
21                exec update-grub
22        fi
23        ;;
24esac
25
26exit 0
Note: See TracBrowser for help on using the repository browser.