Last change
on this file since 34 was
34,
checked in by mabarracus, 5 years ago
|
purge completly from ucf registry option missing, before only cleans cache file and md5
|
File size:
496 bytes
|
Rev | Line | |
---|
[22] | 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 |
---|
[30] | 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 |
---|
[34] | 14 | ucfr --purge --force grub-pc /etc/default/grub |
---|
| 15 | mv /etc/default/grub /etc/default/grub.backup$f |
---|
[30] | 16 | fi |
---|
[22] | 17 | ;; |
---|
| 18 | esac |
---|
| 19 | |
---|
| 20 | #DEBHELPER# |
---|
| 21 | |
---|
| 22 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.