aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/detect-resolution2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/detect-resolution b/scripts/detect-resolution
index 6a777c1..0f96b9d 100755
--- a/scripts/detect-resolution
+++ b/scripts/detect-resolution
@@ -61,7 +61,7 @@ sub parse_grub_conf {
$cnt++;
}
if (m/kernel\s+\(.*\)[^\s]+/) {
- $vga = $1 if /vga=(.*)/;
+ $vga = $1 if /vga=(\w*)/;
$entry{$title}{vga} = $vga if ($title and $vga);
}
if (m,initrd\s+\(.*\)(?:.*/)?([^\s]+),){