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

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

purge completly from ucf registry option missing, before only cleans cache file and md5

File size: 496 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    fi
17    ;;
18esac
19
20#DEBHELPER#
21
22exit 0
Note: See TracBrowser for help on using the repository browser.