summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-14 12:42:28 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-14 12:42:28 +0000
commite9b65b9e5b0eb8d179a7a211609ad0e4bd02bb85 (patch)
tree6eeed838e7ceff051a6a92fad67ec046000847db /bin
parentca4ceed3455881fd6b244035faf663c2ba7ccf1a (diff)
downloaddrakx-net-e9b65b9e5b0eb8d179a7a211609ad0e4bd02bb85.tar
drakx-net-e9b65b9e5b0eb8d179a7a211609ad0e4bd02bb85.tar.gz
drakx-net-e9b65b9e5b0eb8d179a7a211609ad0e4bd02bb85.tar.bz2
drakx-net-e9b65b9e5b0eb8d179a7a211609ad0e4bd02bb85.tar.xz
drakx-net-e9b65b9e5b0eb8d179a7a211609ad0e4bd02bb85.zip
inline add_intf
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakconnect8
1 files changed, 2 insertions, 6 deletions
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);
-}