0003-10_linux-20_linux_xen-rebrand-free-distros.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. diff -Nur a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
  2. --- a/util/grub.d/10_linux.in 2015-09-27 14:14:45.544730230 -0300
  3. +++ b/util/grub.d/10_linux.in 2015-09-27 14:58:23.533917184 -0300
  4. @@ -31,7 +31,17 @@
  5. if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
  6. OS=GNU/Linux
  7. else
  8. - OS="${GRUB_DISTRIBUTOR} GNU/Linux"
  9. + if echo ${GRUB_DISTRIBUTOR} | grep -qi Parabola ; then
  10. + OS="${GRUB_DISTRIBUTOR} GNU/Linux-libre"
  11. + elif echo ${GRUB_DISTRIBUTOR} | grep -qi Blag ; then
  12. + OS="${GRUB_DISTRIBUTOR} Linux and GNU"
  13. + elif echo ${GRUB_DISTRIBUTOR} | grep -qi Musix ; then
  14. + OS="${GRUB_DISTRIBUTOR} GNU+Linux"
  15. + elif echo ${GRUB_DISTRIBUTOR} | grep -qi Dragora ; then
  16. + OS="${GRUB_DISTRIBUTOR} GNU/Linux-libre"
  17. + else
  18. + OS="${GRUB_DISTRIBUTOR} GNU/Linux"
  19. + fi
  20. CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
  21. fi
  22. diff -Nur a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
  23. --- a/util/grub.d/20_linux_xen.in 2015-09-27 14:14:45.544730230 -0300
  24. +++ b/util/grub.d/20_linux_xen.in 2015-09-27 14:59:16.319319658 -0300
  25. @@ -31,7 +31,17 @@
  26. if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
  27. OS=GNU/Linux
  28. else
  29. - OS="${GRUB_DISTRIBUTOR} GNU/Linux"
  30. + if echo ${GRUB_DISTRIBUTOR} | grep -qi Parabola ; then
  31. + OS="${GRUB_DISTRIBUTOR} GNU/Linux-libre"
  32. + elif echo ${GRUB_DISTRIBUTOR} | grep -qi Blag ; then
  33. + OS="${GRUB_DISTRIBUTOR} Linux and GNU"
  34. + elif echo ${GRUB_DISTRIBUTOR} | grep -qi Musix ; then
  35. + OS="${GRUB_DISTRIBUTOR} GNU+Linux"
  36. + elif echo ${GRUB_DISTRIBUTOR} | grep -qi Dragora ; then
  37. + OS="${GRUB_DISTRIBUTOR} GNU/Linux-libre"
  38. + else
  39. + OS="${GRUB_DISTRIBUTOR} GNU/Linux"
  40. + fi
  41. CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
  42. fi