#!/bin/bash
cp -f /home/powerpro/dhcpd* /home/powerpro/dhcp
dhcpsource='/home/powerpro/dhcp/'
chown 0:0 $dhcpsource/*
if [ -f /etc/dhcpd.conf ]; then 
  # For CentOS & RHEL 5.x where dhcpd.conf is in /etc
  mv -f $dhcpsource\dhcpd.conf /etc/
fi
mv -f $dhcpsource\dhcpd.* /etc/dhcp/
/etc/rc.d/init.d/dhcpd restart

