summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-02-19 11:11:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-02-19 11:11:00 +0000
commit8d8e3d54bd4cd62dfb851063501d8a7ece8c0a08 (patch)
tree3b3421ee010b1035503b80195133d5c8f53fb1aa
parent83b51c245c7ababbd67e8f7631635c6961ee00ec (diff)
downloaddrakx-backup-do-not-use-8d8e3d54bd4cd62dfb851063501d8a7ece8c0a08.tar
drakx-backup-do-not-use-8d8e3d54bd4cd62dfb851063501d8a7ece8c0a08.tar.gz
drakx-backup-do-not-use-8d8e3d54bd4cd62dfb851063501d8a7ece8c0a08.tar.bz2
drakx-backup-do-not-use-8d8e3d54bd4cd62dfb851063501d8a7ece8c0a08.tar.xz
drakx-backup-do-not-use-8d8e3d54bd4cd62dfb851063501d8a7ece8c0a08.zip
anchor the -IP match at the end of the string
-rw-r--r--perl-install/install2.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm
index be55018c1..05c0f2646 100644
--- a/perl-install/install2.pm
+++ b/perl-install/install2.pm
@@ -476,9 +476,9 @@ sub main {
#- done after module dependencies are loaded for "vfat depends on fat"
if ($::auto_install) {
- if ($::auto_install =~ /-IP(\.pl)?/) {
+ if ($::auto_install =~ /-IP(\.pl)?$/) {
my $ip = join('', map { sprintf "%02X", $_ } split '\.', $o->{intf}{IPADDR});
- $::auto_install =~ s/-IP(\.pl)?/-$ip$1/;
+ $::auto_install =~ s/-IP(\.pl)?$/-$ip$1/;
}
require install_steps_auto_install;
eval { $o = $::o = install_any::loadO($o, $::auto_install) };