summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-11 15:16:54 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-11 15:16:54 +0000
commitb6872479918dc3d2cb98f6774d79771187ef1ab6 (patch)
tree7abd81314af4fc8808845c214a65df18f6aa2bb0
parentaff0f40d008cefbd84d6cd1d0bde61247f8a0be8 (diff)
downloaddrakx-backup-do-not-use-b6872479918dc3d2cb98f6774d79771187ef1ab6.tar
drakx-backup-do-not-use-b6872479918dc3d2cb98f6774d79771187ef1ab6.tar.gz
drakx-backup-do-not-use-b6872479918dc3d2cb98f6774d79771187ef1ab6.tar.bz2
drakx-backup-do-not-use-b6872479918dc3d2cb98f6774d79771187ef1ab6.tar.xz
drakx-backup-do-not-use-b6872479918dc3d2cb98f6774d79771187ef1ab6.zip
regexp cleanup (bis)
-rwxr-xr-xperl-install/standalone/drakroam4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/drakroam b/perl-install/standalone/drakroam
index 8d6f640a0..e46de2454 100755
--- a/perl-install/standalone/drakroam
+++ b/perl-install/standalone/drakroam
@@ -59,9 +59,9 @@ my %available_roaming_daemons = (
my ($config) = @_;
each_index {
/^#/ || /^\n/ and next; #ignore comments and blank lines
- if (/([^ \t]+)([ \t]+)(.*)/) {
+ if (/^(\S+)\s+(.*)$/) {
my ($essid, $mode, $channel, $key, $dhcp);
- my $command = $3;
+ my $command = $2;
# setup new network entry
$essid = $1;
($mode) = $command =~ /mode\s([^\s;]+)/;