X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Fdhcp;h=a25fe74cd81da14f238dd0ea7f38a4436383131f;hb=d1040a12fae93e20587519a732730cb4c9cb5050;hp=beb7ee6345f59d1363cfff3c19795b3a66223920;hpb=02a6c67738080f06def83e5c2aad68af3ce2d56b;p=hvlinux.git diff --git a/stage2/pkg/dhcp b/stage2/pkg/dhcp index beb7ee6..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,33 +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_"; - 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/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.