summaryrefslogtreecommitdiffstats
path: root/perl-install/network/network.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-10-03 14:57:44 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-10-03 14:57:44 +0000
commit8b84a80d1ba39599a1bb5fe399ac07fe6828e967 (patch)
treeba90d064e4ab4b4f2d96b8f534d32f6cef7a8a6c /perl-install/network/network.pm
parent3e707482b91a952910675c927aeafbfc558f32fe (diff)
downloaddrakx-backup-do-not-use-8b84a80d1ba39599a1bb5fe399ac07fe6828e967.tar
drakx-backup-do-not-use-8b84a80d1ba39599a1bb5fe399ac07fe6828e967.tar.gz
drakx-backup-do-not-use-8b84a80d1ba39599a1bb5fe399ac07fe6828e967.tar.bz2
drakx-backup-do-not-use-8b84a80d1ba39599a1bb5fe399ac07fe6828e967.tar.xz
drakx-backup-do-not-use-8b84a80d1ba39599a1bb5fe399ac07fe6828e967.zip
only read /etc/sysconfig/network-scripts/ifcfg-*, not old.ifcfg-* and
the like...
Diffstat (limited to 'perl-install/network/network.pm')
-rw-r--r--perl-install/network/network.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 5a21d441c..d6e6647c1 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -480,7 +480,7 @@ sub read_all_conf {
add2hash($netc, read_resolv_conf());
add2hash($netc, read_tmdns_conf("$prefix/etc/tmdns.conf")) if -r "$prefix/etc/tmdns.conf";
foreach (all("$prefix/etc/sysconfig/network-scripts")) {
- if (/ifcfg-(\w+)/ && $1 ne 'lo') {
+ if (/^ifcfg-(\w+)/ && $1 ne 'lo') {
my $intf = findIntf($intf, $1);
add2hash($intf, { getVarsFromSh("$prefix/etc/sysconfig/network-scripts/$_") });
}