summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-version
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-show-version')
-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"
}