Changeset 1725

Show
Ignore:
Timestamp:
09/08/06 10:17:55 (2 years ago)
Author:
alexander
Message:

Removed the pointless warning about missing network interface configuration
when hibernating the computer that obtained its IP address from DHCP via the
udev rule (see http://wiki.linuxfromscratch.org/lfs/ticket/1866).

The case when the user manually runs the "ip" command to configure
the network interface for a static IP address still results in a warning.

Location:
branches/6.2
Files:
1 added
4 modified

Legend:

Unmodified
Added
Removed
  • branches/6.2/doc/README

    r1722 r1725  
    166166============================ 
    167167It is possible to start the sshd daemon automatically upon boot. To do that, 
    168 you have to customize the CD. Modify the following files: 
     168you have to customize the CD. Create the following files: 
    169169 
    170170* /.autosshd 
     
    189189    Configure a known static IP address there, as described in the LFS book, 
    190190    section "7.12. Configuring the network Script". 
    191  
    192 * /etc/udev/rules.d/50-network.rules 
    193     Remove this file in order to prevent udev from running dhcpcd. 
    194191 
    195192INTERNATIONALIZATION 
  • branches/6.2/packages/lfs-bootscripts/lfs-bootscripts-6.2-livecd-1.patch

    r1689 r1725  
    9393+       ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc1.d/K80network 
    9494+       ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc2.d/K80network 
    95 +       ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc3.d/S20network 
    96 +       ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc4.d/S20network 
    97 +       ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc5.d/S20network 
     95+       # ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc3.d/S20network 
     96+       # ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc4.d/S20network 
     97+       # ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc5.d/S20network 
    9898+       ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc6.d/K80network 
    9999+       ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs 
  • branches/6.2/packages/udev/50-network.rules

    r1295 r1725  
    11# Run dhcpcd when anything resembling a valid Ethernet-like interface appears 
    2 ACTION=="add", SUBSYSTEM=="net", SYSFS{addr_len}=="6", SYSFS{address}!="00:00:00:00:00:00", RUN+="/bin/sh -c 'PATH=/sbin:/bin dhcpcd %k -t 20 &'" 
     2ACTION=="add", SUBSYSTEM=="net", SYSFS{addr_len}=="6", SYSFS{address}!="00:00:00:00:00:00", RUN+="dhcp-helper %k" 
    33 
    44# "dhcpcd -k" is not good: it destroys the cache but fails to send DHCP_RELEASE 
    55# Since the interface is already gone, we choose to keep the cache 
    66# and thus avoid the IP address leak from the DHCP server pool 
    7 ACTION=="remove", SUBSYSTEM=="net", RUN+="/bin/sh -c 'kill `cat /var/run/dhcpcd-%k.pid` ; exit 0'" 
     7ACTION=="remove", SUBSYSTEM=="net", RUN+="/etc/sysconfig/network-devices/ifdown %k" 
  • branches/6.2/packages/udev/Makefile

    r1706 r1725  
    4141        cp $(CONFDIR)/[0-9]* /etc/udev/rules.d/ 
    4242        echo 'ACTION=="add", BUS=="pci", SYSFS{class}=="0x030000", RUN+="detect-video"' >/etc/udev/rules.d/30-video.rules 
    43         install -m755 ../detect-video /lib/udev 
     43        install -m755 ../detect-video ../dhcp-helper /lib/udev 
    4444        install -m644 ../50-network.rules /etc/udev/rules.d/ 
    4545        install -m644 -D docs/writing_udev_rules/index.html \