0002-Made-initrd-follow-the-quite-boot-parameter.patch 607 B

12345678910111213141516171819202122
  1. # When the quite boot parameter is passed print warnings and errors only.
  2. diff --git a/src/common.sh b/src/common.sh
  3. index 609b82d..48eba59 100644
  4. --- a/src/common.sh
  5. +++ b/src/common.sh
  6. @@ -22,12 +22,12 @@ fi
  7. LANGFILE=${LANGDIR}/$(echo $LANG).txt
  8. msg() {
  9. message=$(translate $1)
  10. - echo -e " ${C_GREEN}*${C_CLEAR} $message $2"
  11. + [ -n $quiet ] || echo -e " ${C_GREEN}*${C_CLEAR} $message $2"
  12. }
  13. inf() {
  14. message=$(translate $1)
  15. - echo -e " ${C_CYAN}*${C_CLEAR} $message $2"
  16. + [ -n $quiet ] || echo -e " ${C_CYAN}*${C_CLEAR} $message $2"
  17. }
  18. debug() {
  19. message=$(translate $1)
  20. --