summaryrefslogtreecommitdiff
path: root/libre/grub/grub-10_linux-rebrand-free-distros.patch
blob: 7edb22a1f83c9bd8edacba8d16465708b1d74ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index 00d1931..23de7ce 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -31,7 +31,17 @@ CLASS="--class gnu-linux --class gnu --class os"
 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
   OS=GNU/Linux
 else
-  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
+  if echo ${GRUB_DISTRIBUTOR} | grep -qi Parabola ; then
+      OS="${GRUB_DISTRIBUTOR} GNU/Linux-libre"
+  elif echo ${GRUB_DISTRIBUTOR} | grep -qi Blag ; then
+      OS="${GRUB_DISTRIBUTOR} Linux and GNU"
+  elif echo ${GRUB_DISTRIBUTOR} | grep -qi Musix ; then
+      OS="${GRUB_DISTRIBUTOR} GNU+Linux"
+  elif echo ${GRUB_DISTRIBUTOR} | grep -qi Dragora ; then
+      OS="${GRUB_DISTRIBUTOR} GNU/Linux-libre"
+  else
+      OS="${GRUB_DISTRIBUTOR} GNU/Linux"
+  fi
   CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
 fi