From 6cfbce46434a36c0a053cd2960847c916291a8fb Mon Sep 17 00:00:00 2001 From: Barry Jackson Date: Tue, 6 Sep 2016 13:38:29 +0100 Subject: Copy background at correct aspect ratio as /boot/grub2/themes/grub2-mageia-default.png if themes dir exists --- mga-bg-res/mga-bg-res.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mga-bg-res') diff --git a/mga-bg-res/mga-bg-res.sh b/mga-bg-res/mga-bg-res.sh index 0c733de..3dc8416 100755 --- a/mga-bg-res/mga-bg-res.sh +++ b/mga-bg-res/mga-bg-res.sh @@ -41,6 +41,9 @@ fi if [ "$curlink" != "$bgpath/$theme-$res.jpg" ]; then if [ -e "$bgpath/$theme-$res.jpg" ]; then ln -sf $bgpath/$theme-$res.jpg $bgpath/default.jpg + if [ -d /boot/grub2/themes ]; then + cp -f $bgpath/$theme-$res.png /boot/grub2/themes/grub2-mageia-default.png + fi else echo -e "Could not find this file: $bgpath/$theme-$res.jpg." echo "Please check that the mageia-theme-Default package is properly installed, or disable" -- cgit v1.2.1