From d2183f2a4e253abe2066484f2d997147bde27e60 Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Thu, 6 Mar 2003 15:48:29 +0000 Subject: detect if the device is pcmcia when initializing the ONBOOT parameter --- perl-install/network/network.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm index b17b102d9..22d763ea2 100644 --- a/perl-install/network/network.pm +++ b/perl-install/network/network.pm @@ -326,7 +326,7 @@ Each item should be entered as an IP address in dotted-decimal notation (for example, 1.2.3.4)."); } my $auto_ip = $intf->{BOOTPROTO} !~ /static/; - my $onboot = $intf->{ONBOOT} !~ /no/; + my $onboot = $intf->{ONBOOT} ? $intf->{ONBOOT} =~ /yes/ : bool2yesno(!member($intf->{DEVICE}, map { $_->{device} } detect_devices::pcmcia_probe())); my $needhostname = $intf->{NEEDHOSTNAME} !~ /no/; my $hotplug = $::isStandalone && !$intf->{MII_NOT_SUPPORTED} or 1; my $track_network_id = $::isStandalone && $intf->{HWADDR} or detect_devices::isLaptop(); -- cgit v1.2.1