Bug 18398

Summary: /etc/pcmcia/network is buggy
Product: [Retired] Red Hat Linux Reporter: lionel.cons
Component: hwdataAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-06-05 23:00:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description lionel.cons 2000-10-05 12:32:08 UTC
This defect is present since 6.1 at least. The parameter ONBOOT that can be
set in /etc/sysconfig/network-scripts/ifcfg-eth0 is ignored for PCMCIA
network cards. This is because the initialisation is done via the
/etc/pcmcia/network script which does not differentiate a normal boot
(where ONBOOT should be obeyed) from an other event (like card insertion).

We use a here a quick hack to make it work, maybe you'll have a better
solution...

--- /etc/pcmcia/network.old Mon Sep 27 16:13:35 1999
+++ /etc/pcmcia/network Fri Sep 15 11:14:23 2000
@@ -13,7 +13,8 @@
 
 case "${action:?}" in
 'start')
-       /etc/sysconfig/network-scripts/ifup ifcfg-${device}
+       /sbin/pidof -x /etc/rc.d/rc >/dev/null 2>&1 && extra=boot
+       /etc/sysconfig/network-scripts/ifup ifcfg-${device} $extra
     ;;
 'stop')
        /etc/sysconfig/network-scripts/ifdown ifcfg-${device}

Comment 1 keithu@parl.clemson.edu 2000-10-06 17:59:37 UTC
I'm glad you submitted that bug.  That one REALLY annoys me as I move from
dial-up to office frequently and it means that I have to stop eth0 when I boot
at home.  I had never bothered to track it down though...

Comment 2 Bill Nottingham 2003-06-05 23:00:47 UTC
Currently you can set 'ONHOTPLUG=no' for pluggable interfaces.