X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Fdhcp;h=a25fe74cd81da14f238dd0ea7f38a4436383131f;hb=d1040a12fae93e20587519a732730cb4c9cb5050;hp=1cb301a6d8da4a600d5ae075cf76c25f0b061947;hpb=be61b7f85be1eb14eb585f28d15713bf2c923aa7;p=hvlinux.git diff --git a/stage2/pkg/dhcp b/stage2/pkg/dhcp index 1cb301a..a25fe74 100644 --- a/stage2/pkg/dhcp +++ b/stage2/pkg/dhcp @@ -5,8 +5,7 @@ hvconfig_pre() cd ${LFS_TMP}/${PACKAGE} sed -i 's%\(^sbindir =\).*%\1 @prefix@@sbindir@%' server/Makefile.in - CONFIGURE_OPTS="\ - ${CONFIGURE_OPTS} \ + CONFIGURE_OPTS+=" \ --localstatedir=/var \ --sbindir=/sbin \ --with-srv-lease-file=/var/state/dhcp/dhcpd.leases \ @@ -22,43 +21,6 @@ hvconfig_post() hvbuild_post() { - install -m 755 client/scripts/linux /sbin/dhclient-script - - # This is for the DHCP client - cat > /etc/dhclient.conf << "EOF" -# dhclient.conf - -timeout 15; - -interface "eth0"{ - supersede domain-name "_DOMAIN_"; - prepend domain-name-servers 127.0.0.1; - request subnet-mask, broadcast-address, time-offset, routers, - domain-name, domain-name-servers, host-name; - require subnet-mask, domain-name-servers; -} -EOF - - sed -i -e "s!_DOMAIN_!${DOMAIN}!g" /etc/dhclient.conf - - cat > /etc/dhclient-enter-hooks << "EOF" -# If named is running, do not let dhclient create or modify resolv.conf -# by specifyng an empty function hook: -make_resolv_conf(){ - : -} -EOF - chmod u+x /etc/dhclient-enter-hooks - - cat > /etc/sysconfig/network/dhcp-client << "EOF" -# dhcp-client -# DHCP client program informations -# -DHCP_PROG="/sbin/dhclient" -DHCP_START="-q -1" -DHCP_STOP="-q -r" -EOF - # Create a base configuration file for a DHCP server. cat > /etc/dhcpd.conf << EOF # Configuration file for DHCP server.