Replacing dhcpcd with dhcp (client only)

This commit is contained in:
Albert Hopkins 2011-04-22 22:20:01 -04:00
parent 1d3b1e00fc
commit fe8ecee7c7
2 changed files with 4 additions and 2 deletions

View File

@ -179,7 +179,8 @@ sysconfig: preproot $(SWAP_FILE) $(CHROOT)/etc/fstab $(CHROOT)/etc/conf.d/hostna
$(VIRTIO_FSTAB) $(VIRTIO_FSTAB)
sed -i 's/^#s0:/s0:/' $(CHROOT)/etc/inittab sed -i 's/^#s0:/s0:/' $(CHROOT)/etc/inittab
$(HEADLESS_INITTAB) $(HEADLESS_INITTAB)
echo 'config_eth0=( "dhcp" )' > $(CHROOT)/etc/conf.d/net echo 'modules=( "dhclient" )' > $(CHROOT)/etc/conf.d/net
echo 'config_eth0=( "dhcp" )' >> $(CHROOT)/etc/conf.d/net
echo 'dhcp_eth0="release"' >> $(CHROOT)/etc/conf.d/net echo 'dhcp_eth0="release"' >> $(CHROOT)/etc/conf.d/net
$(inroot) ln -nsf net.lo /etc/init.d/net.eth0 $(inroot) ln -nsf net.lo /etc/init.d/net.eth0
$(inroot) rc-update add net.eth0 default $(inroot) rc-update add net.eth0 default
@ -191,7 +192,7 @@ systools: sysconfig compile_options
$(inroot) rc-update add syslog-ng default $(inroot) rc-update add syslog-ng default
$(inroot) $(EMERGE) -n $(USEPKG) sys-power/acpid $(inroot) $(EMERGE) -n $(USEPKG) sys-power/acpid
$(inroot) rc-update add acpid default $(inroot) rc-update add acpid default
$(inroot) $(EMERGE) -n $(USEPKG) net-misc/dhcpcd $(inroot) $(EMERGE) -n $(USEPKG) net-misc/dhcp
ifeq ($(DASH),YES) ifeq ($(DASH),YES)
$(inroot) $(EMERGE) -n $(USEPKG) app-shells/dash $(inroot) $(EMERGE) -n $(USEPKG) app-shells/dash
echo /bin/dash >> $(CHROOT)/etc/shells echo /bin/dash >> $(CHROOT)/etc/shells

View File

@ -3,3 +3,4 @@ dev-lang/python ssl threads xml
sys-auth/pambase minimal sys-auth/pambase minimal
sys-kernel/gentoo-sources symlink sys-kernel/gentoo-sources symlink
sys-libs/ncurses minimal sys-libs/ncurses minimal
net-misc/dhcp client