summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-03-05 17:19:22 +0100
committerDaniil Baturin <daniil@baturin.org>2014-03-05 17:19:22 +0100
commitfea96ae9cbbdb34c90bf9c77867615c056434f5a (patch)
tree0ea95636345eb6ec01a0b8f2bbbb1bdf13ce2c44
parent55059a82de4531fd28e50926896086a072bd9dbe (diff)
downloadvyatta-op-fea96ae9cbbdb34c90bf9c77867615c056434f5a.tar.gz
vyatta-op-fea96ae9cbbdb34c90bf9c77867615c056434f5a.zip
Bug #156: Check for 'vyatta' or 'vyos' kernels.
-rwxr-xr-xscripts/vyatta-show-version4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-show-version b/scripts/vyatta-show-version
index f7a3ee9..94ab424 100755
--- a/scripts/vyatta-show-version
+++ b/scripts/vyatta-show-version
@@ -61,7 +61,7 @@ sub get_image_type {
return;
}
- unless ($kernel =~ /^vmlinuz-.*-([^-]*)-vyatta(.*)$/) {
+ unless ($kernel =~ /^vmlinuz-.*-([^-]*)-(vyatta|vyos)(.*)$/) {
warn "Unknown kernel version: $kernel\n";
return;
}
@@ -74,7 +74,7 @@ sub get_image_type {
$version = $1;
}
- if ($2 eq '-virt') {
+ if ($3 eq '-virt') {
$version .= " Virtual"
}