summarylogtreecommitdiffstats
path: root/grub2-theme-archxion.install
diff options
context:
space:
mode:
authorGenerator2015-06-17 14:14:25 +0100
committerGenerator2015-06-17 14:14:25 +0100
commit5e2ef34da33bc467a35f85211a18d6d22aba3c9f (patch)
tree20be9fd6372313be48d41cfeda6802cdf4478603 /grub2-theme-archxion.install
downloadaur-5e2ef34da33bc467a35f85211a18d6d22aba3c9f.tar.gz
Initial import
Diffstat (limited to 'grub2-theme-archxion.install')
-rw-r--r--grub2-theme-archxion.install29
1 files changed, 29 insertions, 0 deletions
diff --git a/grub2-theme-archxion.install b/grub2-theme-archxion.install
new file mode 100644
index 000000000000..3e79a0b0aa48
--- /dev/null
+++ b/grub2-theme-archxion.install
@@ -0,0 +1,29 @@
+post_install() {
+ cat << _EOF
+
+==> Installation:
+==> Add theme to your /etc/default/grub: GRUB_THEME="/boot/grub/themes/Archxion/theme.txt"
+==> Preferred resolution 1024x768: GRUB_GFXMODE=1024x768
+==> Update grub:# grub-mkconfig -o /boot/grub/grub.cfg
+
+_EOF
+}
+
+pre_upgrade() {
+ checkver=$(pacman -Qs grub2-theme-archxion | head -n 1 | awk '{print $2}')
+ target=/boot/grub/themes/Archlinux
+
+ if [[ $checkver == "1.0-1" ]]; then
+ cat << _EOF
+
+==> Install target changed to /boot/grub/themes/Archxion
+==> No longer needed to copy /usr/share/grub/themes/Archxion to /boot/grub/themes/
+
+_EOF
+ # Not Working
+ #if [ -d "$target" ]; then
+ # rm -rf /boot/grub/themes/Archxion
+ #fi
+ fi
+}
+