summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-03-15 10:55:24 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-03-15 10:55:24 +0000
commit965f0b6b34c8a40b46e82f07bf1d76c72ff0cc3b (patch)
treec983c7407b398a271f5ea20730fd931b44086cf9
parent29141c7cf499bddd75b6ca33b63046890e0664a7 (diff)
downloaddrakx-backup-do-not-use-965f0b6b34c8a40b46e82f07bf1d76c72ff0cc3b.tar
drakx-backup-do-not-use-965f0b6b34c8a40b46e82f07bf1d76c72ff0cc3b.tar.gz
drakx-backup-do-not-use-965f0b6b34c8a40b46e82f07bf1d76c72ff0cc3b.tar.bz2
drakx-backup-do-not-use-965f0b6b34c8a40b46e82f07bf1d76c72ff0cc3b.tar.xz
drakx-backup-do-not-use-965f0b6b34c8a40b46e82f07bf1d76c72ff0cc3b.zip
(write_interface_conf) fix missing quotes around wireless encryption key (#8887)
-rw-r--r--perl-install/network/network.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 37d4e3e2c..ec56299b9 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -168,6 +168,7 @@ sub write_interface_conf {
$intf->{BOOTPROTO} =~ s/dhcp.*/dhcp/;
+ local $intf->{WIRELESS_ENC_KEY} = qq("$intf->{WIRELESS_ENC_KEY}") if $intf->{WIRELESS_ENC_KEY} !~ /"/;
setVarsInSh($file, $intf, qw(DEVICE BOOTPROTO IPADDR NETMASK NETWORK BROADCAST ONBOOT HWADDR MII_NOT_SUPPORTED),
qw(WIRELESS_MODE WIRELESS_ESSID WIRELESS_NWID WIRELESS_FREQ WIRELESS_SENS WIRELESS_RATE WIRELESS_ENC_KEY WIRELESS_RTS WIRELESS_FRAG WIRELESS_IWCONFIG WIRELESS_IWSPY WIRELESS_IWPRIV),
if_($intf->{BOOTPROTO} eq "dhcp", qw(DHCP_HOSTNAME NEEDHOSTNAME))