summaryrefslogtreecommitdiff
path: root/libre-testing/grub2/grub2.install
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-02-12 13:01:00 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-02-12 13:01:00 -0300
commit1a47fcae076047932614b9c19fb49f5f8c9791bb (patch)
tree19a8770d7170f435ec56e9c98505becc8271e24e /libre-testing/grub2/grub2.install
parent18019242c4e527f7140f92336061562b8cfb50fb (diff)
parente9447f47dcf11be3dc905e72374b0e4298a4c112 (diff)
Merge branch 'master' of ssh://vparabola/srv/git/projects/abslibre
Diffstat (limited to 'libre-testing/grub2/grub2.install')
-rw-r--r--libre-testing/grub2/grub2.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/libre-testing/grub2/grub2.install b/libre-testing/grub2/grub2.install
new file mode 100644
index 000000000..898dc9246
--- /dev/null
+++ b/libre-testing/grub2/grub2.install
@@ -0,0 +1,30 @@
+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
+
+}
+
+
+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
+}
+