source: grub-pc/trunk/fuentes/debian/preinst.in @ 39

Last change on this file since 39 was 39, checked in by mabarracus, 5 years ago

add debconf to fix /etc/default/grub

File size: 594 bytes
Line 
1#!/bin/sh
2set -e
3
4case "$1" in
5  install|upgrade)
6    if dpkg --compare-versions "$2" lt 1.98+20100804-2 && \
7       test -h /etc/kernel/postrm.d/zz-update-grub; then
8      rm -f /etc/kernel/postrm.d/zz-update-grub
9    fi
10    # lliurex: remove default config file
11    if [ -f /etc/default/grub ]; then
12        f=`date '+%y%m%d%H%M%S'`
13        ucf --purge /etc/default/grub
14        ucfr --purge --force grub-pc /etc/default/grub
15        mv /etc/default/grub /etc/default/grub.backup$f
16
17        . /usr/share/debconf/confmodule
18
19        db_set grub2/linux_cmdline_default quiet splash net.ifnames=0
20    fi
21    ;;
22esac
23
24#DEBHELPER#
25
26exit 0
Note: See TracBrowser for help on using the repository browser.