Skip to content

Commit 44223c5

Browse files
committed
fix: bsd: kernel version detection
1 parent dbe208f commit 44223c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spectre-meltdown-checker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,7 @@ else
26002600
kernel_version=$("${opt_arch_prefix}strings" "$kernel" 2>/dev/null | grep -E \
26012601
-e '^Linux version ' \
26022602
-e '^[[:alnum:]][^[:space:]]+ \([^[:space:]]+\) #[0-9]+ .+ (19|20)[0-9][0-9]$' \
2603-
-e '^FreeBSD [0-9]' | head -1)
2603+
-e '^FreeBSD [0-9]' | grep -v 'ABI compat' | head -1)
26042604
if [ -z "$kernel_version" ]; then
26052605
# try even harder with some kernels (such as ARM) that split the release (uname -r) and version (uname -v) in 2 adjacent strings
26062606
kernel_version=$("${opt_arch_prefix}strings" "$kernel" 2>/dev/null | grep -E -B1 '^#[0-9]+ .+ (19|20)[0-9][0-9]$' | tr "\n" " ")

0 commit comments

Comments
 (0)