From 69907ed1e861483d4063a1eec3662690681651a7 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 27 Aug 1999 10:58:06 +0000 Subject: no_comment --- perl-install/network.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'perl-install/network.pm') diff --git a/perl-install/network.pm b/perl-install/network.pm index bce10e35a..7dd3f9349 100644 --- a/perl-install/network.pm +++ b/perl-install/network.pm @@ -137,3 +137,9 @@ sub getNet() { @l; } +sub findIntf { + my ($intf, $device) = @_; + my ($l) = grep { $_->{DEVICE} eq $device } @$intf; + push @$intf, $l = { DEVICE => $device } unless $l; + $l; +} -- cgit v1.2.1