diff options
author | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-09 16:39:19 +0000 |
---|---|---|
committer | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-09 16:39:19 +0000 |
commit | 1ff0fe7cdc8d3ee43cf5d3b5aab88795d10d7fce (patch) | |
tree | 1be1fc03a1a22e9bfe23c912e75891ef30b907a3 | |
parent | 7ea0b5b1928050f03d3cf885c1d20cdc0245f05f (diff) | |
download | drakwizard-1ff0fe7cdc8d3ee43cf5d3b5aab88795d10d7fce.tar drakwizard-1ff0fe7cdc8d3ee43cf5d3b5aab88795d10d7fce.tar.gz drakwizard-1ff0fe7cdc8d3ee43cf5d3b5aab88795d10d7fce.tar.bz2 drakwizard-1ff0fe7cdc8d3ee43cf5d3b5aab88795d10d7fce.tar.xz drakwizard-1ff0fe7cdc8d3ee43cf5d3b5aab88795d10d7fce.zip |
added a return value
-rw-r--r-- | common/scripts/DrakconnectConf.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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; |