diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-08-04 07:40:01 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-08-04 07:40:01 +0000 |
commit | 94c87ec4bf39207ab828f849c1cf2c0cfca38a7e (patch) | |
tree | adebe1f53cf2c23aa2dc1f9f84eff102dde7cf3b /perl-install/network/tools.pm | |
parent | 0bdc0e9e32497e5dcefd42a03e1a792268f76390 (diff) | |
download | drakx-94c87ec4bf39207ab828f849c1cf2c0cfca38a7e.tar drakx-94c87ec4bf39207ab828f849c1cf2c0cfca38a7e.tar.gz drakx-94c87ec4bf39207ab828f849c1cf2c0cfca38a7e.tar.bz2 drakx-94c87ec4bf39207ab828f849c1cf2c0cfca38a7e.tar.xz drakx-94c87ec4bf39207ab828f849c1cf2c0cfca38a7e.zip |
kill set_cnx_script usage, replace cnx_scripts with ifup/ifdown
Diffstat (limited to 'perl-install/network/tools.pm')
-rw-r--r-- | perl-install/network/tools.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm index bdfa8a13a..d3dc102f9 100644 --- a/perl-install/network/tools.pm +++ b/perl-install/network/tools.pm @@ -72,9 +72,15 @@ sub passwd_by_login { } } -sub connect_backend() { run_program::rooted($::prefix, "$connect_file &") } +sub connect_backend { + my ($netc) = @_; + run_program::rooted($::prefix, "ifup $netc->{NET_INTERFACE} &"); +} -sub disconnect_backend() { run_program::rooted($::prefix, "$disconnect_file &") } +sub disconnect_backend { + my ($netc) = @_; + run_program::rooted($::prefix, "ifdown $netc->{NET_INTERFACE} &"); +} sub connected() { gethostbyname("mandrakesoft.com") ? 1 : 0 } |