[Blends-commit] [SCM] ezgo branch, master, updated. 69fd53f59b781100ba94e6547b889f5b5e01ca49
Franklin
franklin at goodhorse.idv.tw
Thu Dec 11 02:10:02 UTC 2014
The following commit has been merged in the master branch:
commit 814d195d42b3afbad026572bfef7f9325805af30
Author: Franklin <franklin at goodhorse.idv.tw>
Date: Sun Nov 23 13:43:30 2014 +0800
Change the way to update grub background, so that we can upgrade when a new version is published.
diff --git a/debian/ezgo-artwork.install b/debian/ezgo-artwork.install
index 1b514e1..77355be 100644
--- a/debian/ezgo-artwork.install
+++ b/debian/ezgo-artwork.install
@@ -3,3 +3,4 @@ ezgo-artwork/wallpaper/* usr/share/images/desktop-base
ezgo-artwork/grub/*.png usr/share/ezgo/grub
ezgo-artwork/ldm/* usr/share/ldm/themes/ezgo
ezgo-artwork/update-artwork usr/share/ezgo/ezgo-artwork
+ezgo-artwork/grub/*.cfg etc/default/grub.d
diff --git a/ezgo-artwork/grub/50_ezgo.cfg b/ezgo-artwork/grub/50_ezgo.cfg
new file mode 100644
index 0000000..8ab555f
--- /dev/null
+++ b/ezgo-artwork/grub/50_ezgo.cfg
@@ -0,0 +1,7 @@
+
+# Hijack distributor if it is Ubuntu (default on Ubuntu systems...)
+if [ "${GRUB_DISTRIBUTOR}" = "Ubuntu" ] ; then
+ GRUB_DISTRIBUTOR="ezgo 12"
+fi
+
+GRUB_BACKGROUND=/etc/alternatives/desktop-grub.png
diff --git a/ezgo-artwork/update-artwork b/ezgo-artwork/update-artwork
index 8e3fbff..0418f30 100755
--- a/ezgo-artwork/update-artwork
+++ b/ezgo-artwork/update-artwork
@@ -54,8 +54,8 @@ restore_desktop_background() {
change_grub_background() {
priority=60 # value higher than 50 used for debian-edu-splash-grub.png in desktop-base
update-alternatives --install \
- /usr/share/images/desktop-base/desktop-grub.png \
- desktop-grub \
+ /usr/share/images/desktop-base/ezgo-splash-grub.png \
+ ezgo-splash-grub.png \
/usr/share/ezgo/grub/ezgo-splash-grub.png $priority
if which update-grub2 > /dev/null ; then
@@ -65,7 +65,7 @@ change_grub_background() {
}
restore_grub_background() {
- update-alternatives --remove desktop-grub \
+ update-alternatives --remove ezgo-splash-grub.png \
/usr/share/ezgo/grub/ezgo-splash-grub.png
if which update-grub2 > /dev/null ; then
--
Blend for educatipn with asian specific adaptations
More information about the Blends-commit
mailing list