summaryrefslogtreecommitdiff
path: root/user/grub/adelie-branding.patch
blob: 606c1e6e9c3206d5e44ad2964cd43141419c1623 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- grub-2.04/util/grub.d/10_linux.in.old	2018-11-24 17:13:02.000000000 +0000
+++ grub-2.04/util/grub.d/10_linux.in	2019-10-03 01:22:34.593401423 +0000
@@ -28,12 +28,16 @@
 
 CLASS="--class gnu-linux --class gnu --class os"
 
-if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
-  OS=GNU/Linux
-else
-  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
-  CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
-fi
+case "x${GRUB_DISTRIBUTOR}" in
+  x)
+    OS=GNU/Linux;;
+  xAdélie|xAdelie)
+    OS="Adélie Linux";
+    CLASS="--class adelie";;
+  *)
+    OS="${GRUB_DISTRIBUTOR} GNU/Linux";
+    CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}";;
+esac
 
 # loop-AES arranges things so that /dev/loop/X can be our root device, but
 # the initrds that Linux uses don't like that.