2010-04-18 15:32:16 +02:00
|
|
|
infodir=/usr/share/info
|
|
|
|
filelist=(grub.info multiboot.info)
|
2008-11-12 11:39:19 +01:00
|
|
|
|
|
|
|
post_install() {
|
2010-04-18 15:32:16 +02:00
|
|
|
[ -x usr/bin/install-info ] || return 0
|
|
|
|
for file in ${filelist[@]}; do
|
|
|
|
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
|
2008-11-12 11:39:19 +01:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2010-04-18 15:32:16 +02:00
|
|
|
post_install $1
|
2008-11-12 11:39:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pre_remove() {
|
2010-04-18 15:32:16 +02:00
|
|
|
[ -x usr/bin/install-info ] || return 0
|
|
|
|
for file in ${filelist[@]}; do
|
|
|
|
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
|
2008-11-12 11:39:19 +01:00
|
|
|
done
|
|
|
|
}
|