X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/4e32a3311312ed970d161fead4323b3554a73614..refs/heads/origin:/gen/dhcp.sh diff --git a/gen/dhcp.sh b/gen/dhcp.sh index 086c70dc..0cffe760 100755 --- a/gen/dhcp.sh +++ b/gen/dhcp.sh @@ -13,12 +13,12 @@ MR_MISSINGFILE=47836473 MR_MKCRED=47836474 MR_TARERR=47836476 -PATH=/usr/bin -TARFILE=/var/tmp/boot.out +PATH=/usr/bin:/bin +TARFILE=/var/tmp/dhcp.out BOOTGEN=/var/boot/dhcpd.conf.print BOOTHEAD=/var/boot/dhcpd.conf.head BOOTFOOT=/var/boot/dhcpd.conf.foot -BOOTFILE=/var/boot/bootptab +BOOTFILE=/var/boot/dhcpd.conf PSWDFILE=/var/boot/hp.add # Alert if the tar file or other needed files do not exist @@ -39,6 +39,10 @@ done # Build full bootptab cat $BOOTHEAD $BOOTGEN $BOOTFOOT > $BOOTFILE +# kill and rerun dhcpd +/etc/init.d/dhcpd stop +/etc/init.d/dhcpd start + # cleanup test -f $TARFILE && rm -f $TARFILE test -f $0 && rm -f $0