Dave wrote: > I don't have dhcp or dhcpcd installed, but I can start the network with > "network start". > > What actually calls the script /etc/init.d/network start on initial > boot? I suspect dhcp... does it.
It is started by the rc script. The first process the the kernel runs is /bin/init. It uses /etc/inittab to decide what to do. Assuming run level 3, that runs: /etc/rc.d/init.d/rc S /etc/rc.d/init.d/rc 3 This then executes all the 'S' scripts in /etc/rc.d/rcS.d/ and /etc/rc.d/rc3.d/. We have /etc/rc.d/rc3.d/S20network that starts up the network. It looks for files in /etc/sysconfig/ifconfig.* and uses those to run /sbin/ifup to bring up individual interfaces. For dhcp, you need something like: cat > /etc/sysconfig/ifconfig.eth0 << "EOF" ONBOOT="yes" IFACE="eth0" SERVICE="dhcpcd" DHCP_START="-b -q <insert appropriate start options here>" DHCP_STOP="-k <insert additional stop options here>" EOF As documented in BLFS. The setup for static IP addresses is documented in LFS. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
