summaryrefslogtreecommitdiff
path: root/libre/grub2/grub2.install
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-08-15 10:59:56 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-08-15 10:59:56 -0300
commit4edeae9a60425dff33db4e78579f4623c45a2129 (patch)
treeb80d8e1eb18c522926fcbde595e90fa0d32e1817 /libre/grub2/grub2.install
parent66ed0ff7930edc8bbf36eae3cc9d90ed48c2e1df (diff)
parent827ae7c52b25d8a3ef1bdc0bcd1b99598cf8a494 (diff)
downloadabslibre-4edeae9a60425dff33db4e78579f4623c45a2129.tar.gz
abslibre-4edeae9a60425dff33db4e78579f4623c45a2129.tar.bz2
abslibre-4edeae9a60425dff33db4e78579f4623c45a2129.zip
Merge branch 'master' of ssh://gparabola/abslibre
Diffstat (limited to 'libre/grub2/grub2.install')
-rw-r--r--libre/grub2/grub2.install47
1 files changed, 23 insertions, 24 deletions
diff --git a/libre/grub2/grub2.install b/libre/grub2/grub2.install
index 898dc9246..9baf14776 100644
--- a/libre/grub2/grub2.install
+++ b/libre/grub2/grub2.install
@@ -1,30 +1,29 @@
-post_install() {
-
- if [ -f /boot/grub/grub.cfg.pacsave ]; then
- echo "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
- install -Dm644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
- fi
-
- echo -n "Generating grub.cfg.example config file... "
- grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null
- echo "done."
-
-cat << EOF
- An example config file is created at /boot/grub/grub.cfg.example
-
- For more information and additional config settings please see http://wiki.archlinux.org/index.php/GRUB2
-
-EOF
+infodir=usr/share/info
+filelist=(grub.info grub-dev.info)
+post_install() {
+ if [ -f /boot/grub/grub.cfg.pacsave ]; then
+ echo "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
+ install -Dm644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
+ fi
+
+ echo -n "Generating grub.cfg.example config file... "
+ grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null
+ echo "done."
+
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
}
-
post_upgrade() {
-cat << EOF
- An example config file is created at /boot/grub/grub.cfg.example
-
- For more information and additional config settings please see http://wiki.archlinux.org/index.php/GRUB2
-
-EOF
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
}
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}