summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2016-09-06 13:38:29 +0100
committerBarry Jackson <barjac@mageia.org>2016-09-06 13:38:29 +0100
commit6cfbce46434a36c0a053cd2960847c916291a8fb (patch)
treec2dfc5acf7e1146fd2069f410d99270df620315f
parent973f0a2b8e836c1bb2c6a1bc9eebfefc8d3ceb22 (diff)
downloadtheme-6cfbce46434a36c0a053cd2960847c916291a8fb.tar
theme-6cfbce46434a36c0a053cd2960847c916291a8fb.tar.gz
theme-6cfbce46434a36c0a053cd2960847c916291a8fb.tar.bz2
theme-6cfbce46434a36c0a053cd2960847c916291a8fb.tar.xz
theme-6cfbce46434a36c0a053cd2960847c916291a8fb.zip
Copy background at correct aspect ratio as /boot/grub2/themes/grub2-mageia-default.png if themes dir exists
-rwxr-xr-xmga-bg-res/mga-bg-res.sh3
1 files changed, 3 insertions, 0 deletions
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"