From e9b65b9e5b0eb8d179a7a211609ad0e4bd02bb85 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 14 Mar 2008 12:42:28 +0000 Subject: inline add_intf --- bin/drakconnect | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bin/drakconnect') diff --git a/bin/drakconnect b/bin/drakconnect index c259a46..7f8d98a 100755 --- a/bin/drakconnect +++ b/bin/drakconnect @@ -31,7 +31,6 @@ use standalone; #- warning, standalone must be loaded very first, for 'expla use interactive; use common; -use network::netconnect; use network::network; use modules; @@ -57,12 +56,9 @@ if (/--skip-wizard/) { network::drakconnect::global::configure_net($in, $net, $modules_conf); } else { # default is to run wizard (--add) - add_intf(); + require network::netconnect; + network::netconnect::safe_main($net, $in, $modules_conf); } $modules_conf->write; $in->exit(0); - -sub add_intf() { - network::netconnect::safe_main($net, $in, $modules_conf); -} -- cgit v1.2.1