31277f56fc376fa067f2f4371bd3c919444800db
[live-boot-grml.git] / debian / patches / 13_always_display_warnings_and_failures.patch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 13_always_display_warnings_and_failures.dpatch by Michael Prokop <mika@grml.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Always display failure and warning messages.
6
7 @DPATCH@
8 Index: b/scripts/live-functions
9 ===================================================================
10 --- a/scripts/live-functions    2011-07-24 22:07:56.000000000 +0200
11 +++ b/scripts/live-functions    2011-07-24 22:08:04.000000000 +0200
12 @@ -2,6 +2,17 @@
13  . /scripts/functions
14  . /live.vars
15  
16 +# we definitely want this stuff visible
17 +log_failure_msg()
18 +{
19 +        printf "Failure: $@\n"
20 +}
21 +
22 +log_warning_msg()
23 +{
24 +        printf "Warning: $@\n"
25 +}
26 +
27  log_wait_msg ()
28  {
29         # Print a message and wait for enter