summarylogtreecommitdiffstats
path: root/grub2-theme-archxion.install
diff options
context:
space:
mode:
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 00000000000..3e79a0b0aa4
--- /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
+}
+