milis_name.patch 662 B

123456789101112131415161718
  1. --- a/util/grub.d/10_linux.in~ 2012-04-18 23:24:38.000000000 +0200
  2. +++ b/util/grub.d/10_linux.in 2012-11-28 22:27:41.652673833 +0100
  3. @@ -29,7 +29,14 @@
  4. CLASS="--class gnu-linux --class gnu --class os"
  5. if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
  6. OS=GNU/Linux
  7. + if [ -f "/etc/milis-release" ] ; then
  8. + OS="$(sed 's, release .*$,,g' /etc/milis-release)"
  9. + elif [ -e "/etc/system-release" ] ; then
  10. + OS="$(sed 's, release .*$,,g' /etc/system-release)"
  11. + else
  12. + OS=GNU/Linux
  13. + fi
  14. else
  15. OS="${GRUB_DISTRIBUTOR} GNU/Linux"
  16. CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"