From 1ff0fe7cdc8d3ee43cf5d3b5aab88795d10d7fce Mon Sep 17 00:00:00 2001 From: Arnaud Desmons Date: Mon, 9 Sep 2002 16:39:19 +0000 Subject: added a return value --- common/scripts/DrakconnectConf.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') diff --git a/common/scripts/DrakconnectConf.pm b/common/scripts/DrakconnectConf.pm index b4b7a54c..a1b4fbf8 100644 --- a/common/scripts/DrakconnectConf.pm +++ b/common/scripts/DrakconnectConf.pm @@ -23,6 +23,7 @@ require "__WIZ_HOME__/common/scripts/Vareqval.pm"; use strict; my $file = "/etc/sysconfig/network-scripts/drakconnect_conf"; +!-f $file and die "no such $file"; sub new { my $self = {}; @@ -66,3 +67,5 @@ sub get_from_known_dev { exists $self->{mdk}{$device.$arg} or die "no $arg for $device in $file"; $self->{mdk}{$device.$arg}; } + +10; -- cgit v1.2.1