source:
grub-pc/trunk/fuentes/debian/preinst.in
@
32
Last change on this file since 32 was 32, checked in by , 5 years ago | |
---|---|
File size: 448 bytes |
Line | |
---|---|
1 | #!/bin/sh |
2 | set -e |
3 | |
4 | case "$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 | cp /etc/default/grub /etc/default/grub.backup$f |
14 | ucf --purge /etc/default/grub |
15 | fi |
16 | ;; |
17 | esac |
18 | |
19 | #DEBHELPER# |
20 | |
21 | exit 0 |
Note: See TracBrowser
for help on using the repository browser.