From 8f5aea5c59228ff4e71ba8951313d59fbfd99723 Mon Sep 17 00:00:00 2001 From: Arnaud Desmons Date: Mon, 9 Dec 2002 17:24:23 +0000 Subject: No more use of drakconnect_conf, use of IFCFG.pm instead of DrakconnectConf.pm --- web_wizard/scripts/Webconf.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web_wizard/scripts/Webconf.pm') diff --git a/web_wizard/scripts/Webconf.pm b/web_wizard/scripts/Webconf.pm index fa815aee..4da50a82 100644 --- a/web_wizard/scripts/Webconf.pm +++ b/web_wizard/scripts/Webconf.pm @@ -2,12 +2,12 @@ package Webconf; require "__WIZ_HOME__/common/scripts/Varspaceval.pm"; -require "__WIZ_HOME__/common/scripts/DrakconnectConf.pm"; +require "__WIZ_HOME__/common/scripts/IFCFG.pm"; use MDK::Common; use strict; -my $o = DrakconnectConf->new(); +my $o = IFCFG->new(); sub check { $> and return 1; @@ -91,7 +91,7 @@ sub do_it { $that = "all"; } elsif ($ENV{wiz_web_internal} eq "1") { - ($that) = $o->get_from_known_dev("IP") =~ qr/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.)\d{1,3}$/; + ($that) = $o->itf_get("IPADDR") =~ qr/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.)\d{1,3}$/; $that .= " 127.0.0.1"; } cp_af($file, $file.".orig"); -- cgit v1.2.1