diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-04-03 04:00:18 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-04-03 04:00:18 +0000 |
commit | f7174a54861866279a2a231969221a0ebd5c515e (patch) | |
tree | 1c266c72b442a9191795b1b1cd9487538757b60e /lib/network/network.pm | |
parent | 8492d33b01531ec464354e2ae66d168995ed9dc4 (diff) | |
download | drakx-net-f7174a54861866279a2a231969221a0ebd5c515e.tar drakx-net-f7174a54861866279a2a231969221a0ebd5c515e.tar.gz drakx-net-f7174a54861866279a2a231969221a0ebd5c515e.tar.bz2 drakx-net-f7174a54861866279a2a231969221a0ebd5c515e.tar.xz drakx-net-f7174a54861866279a2a231969221a0ebd5c515e.zip |
rewrite for next commit
Diffstat (limited to 'lib/network/network.pm')
-rw-r--r-- | lib/network/network.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/network/network.pm b/lib/network/network.pm index 827e567..0654f36 100644 --- a/lib/network/network.pm +++ b/lib/network/network.pm @@ -227,9 +227,11 @@ sub write_interface_conf { sub write_wireless_conf { my ($ssid, $ifcfg) = @_; my $wireless_file = $::prefix . $wireless_d . '/' . $ssid; - write_interface_settings($ifcfg, $wireless_file); - # FIXME: write only DHCP/IP settings here - substInFile { $_ = '' if /^DEVICE=/ } $wireless_file; + my %wireless_ifcfg = %$ifcfg; + # FIXME: be smarter to keep only DHCP/IP settings here + delete $wireless_ifcfg{$_} + foreach qw(DEVICE); + write_interface_settings(\%wireless_ifcfg, $wireless_file); } sub add2hosts { |