diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-07-27 10:32:00 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-07-27 10:32:00 +0000 |
commit | f72c3af6846e12e04ab9bd59da0abaae52971d13 (patch) | |
tree | 5be61c36dbbcf1edd47ec0ae6b27df7e0987998d /lib/network/tools.pm | |
parent | 62458281208a3424e1ebf34d58b102fb4adb12d6 (diff) | |
download | drakx-net-f72c3af6846e12e04ab9bd59da0abaae52971d13.tar drakx-net-f72c3af6846e12e04ab9bd59da0abaae52971d13.tar.gz drakx-net-f72c3af6846e12e04ab9bd59da0abaae52971d13.tar.bz2 drakx-net-f72c3af6846e12e04ab9bd59da0abaae52971d13.tar.xz drakx-net-f72c3af6846e12e04ab9bd59da0abaae52971d13.zip |
(get_routes) use the right module
Diffstat (limited to 'lib/network/tools.pm')
-rw-r--r-- | lib/network/tools.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/tools.pm b/lib/network/tools.pm index ed6ec39..de8261d 100644 --- a/lib/network/tools.pm +++ b/lib/network/tools.pm @@ -264,8 +264,8 @@ sub host_hex_to_dotted { sub get_routes() { my %routes; my @routes = cat_("/proc/net/route"); - require bootloader; - @routes = reverse(@routes) if bootloader::cmp_kernel_versions(c::kernel_version(), "2.6.39") >= 0; + require any; + @routes = reverse(@routes) if any::cmp_kernel_versions(c::kernel_version(), "2.6.39") >= 0; foreach (@routes) { if (/^(\S+)\s+([0-9A-F]+)\s+([0-9A-F]+)\s+[0-9A-F]+\s+\d+\s+\d+\s+(\d+)\s+([0-9A-F]+)/) { if (defined $3) { $routes{$1}{gateway} = hex($3) ? host_hex_to_dotted($3) : $routes{$1}{network} } |