1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-24 02:46:36 +01:00

Fix version detection code for VyOS

This commit is contained in:
Pavel Odintsov 2015-05-02 18:51:46 +03:00
parent c62475376f
commit eb5893c275

@ -42,6 +42,11 @@ if (-e "/etc/debian_version") {
$distro_version = `cat /etc/debian_version`;
chomp $distro_version;
# VyOS have strange version and we should fix it
if ($distro_version =~ /^(\d+)\.\d+\.\d+$/) {
$distro_version = $1;
}
}
if (-e "/etc/redhat-release") {