X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Fdhcp;h=a25fe74cd81da14f238dd0ea7f38a4436383131f;hb=ac5da19615d2c5774889fe779184f904d594bae1;hp=5f640d48a68e490299beefa57ab322944769ccde;hpb=5a9383dc799ad6e7ede2c1e8397bc0987969239f;p=hvlinux.git diff --git a/stage2/pkg/dhcp b/stage2/pkg/dhcp index 5f640d4..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,34 +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/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.