summaryrefslogtreecommitdiff
path: root/plymouth/debian/patches/0001-awk.patch
blob: 5d62d95fc81a4b4b819477b0dd02e14437caa917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Daniel Baumann <mail@daniel-baumann.ch>
Description: Hack to fix awk call.

--- a/scripts/plymouth-set-default-theme.in
+++ b/scripts/plymouth-set-default-theme.in
@@ -45,15 +45,7 @@ function list_themes ()
 function read_theme_name_from_file ()
 {
         echo $(grep -v '^#' $1 2> /dev/null |
-               awk '
-                     BEGIN {
-                        RS="[[][[:blank:]]*[^[:space:]]+[:blank:]*[]\n]";
-                        FS="[=[:space:]]+";
-                        OFS="";
-                        ORS=""
-                     }
-                     $1 ~/Theme/ { print $2 }
-               ')
+		awk -F= '/Theme=/ { print $2 }')
 }
 
 function get_default_theme ()
bgstack15