diff options
author | B Stack <bgstack15@gmail.com> | 2017-05-29 09:35:44 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2017-05-29 09:35:44 -0400 |
commit | f5dc73e9bfcf854691aeaf81ee161f6ed1ee566e (patch) | |
tree | 8e2d519cdd983e977d3013c15312aa201e3d462b /usr | |
parent | added --edit, --edit-local, --edit-other to dhcpd-control (diff) | |
download | ddtools-f5dc73e9bfcf854691aeaf81ee161f6ed1ee566e.tar.gz ddtools-f5dc73e9bfcf854691aeaf81ee161f6ed1ee566e.tar.bz2 ddtools-f5dc73e9bfcf854691aeaf81ee161f6ed1ee566e.zip |
cleaned up a few sections of dhcpd-control
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/share/ddtools/dhcpd-control.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr/share/ddtools/dhcpd-control.sh b/usr/share/ddtools/dhcpd-control.sh index fc0f837..1c81a2d 100755 --- a/usr/share/ddtools/dhcpd-control.sh +++ b/usr/share/ddtools/dhcpd-control.sh @@ -320,11 +320,8 @@ trap "clean_dhcpdcontrol" 0 tmp_dhcpd_local_file="$( mktemp -p /tmp dhcpd.XXXXX )" cp -p "${DHCPD_CONTROL_DHCPD_FILE}" "${tmp_dhcpd_local_file}" $EDITOR "${tmp_dhcpd_local_file}" - #scp -p "${DHCPD_CONTROL_OTHER_SERVER}:${DHCPD_CONTROL_DHCPD_FILE}" "${tmp_dhcpd_other_file}" - #cp -p "${tmp_dhcpd_other_file}" "${tmp_dhcpd_other_file}8" #arbitrary number # edit file - #$EDITOR "${tmp_dhcpd_other_file}8" # if change occurred, prepare to replace - if ! cmp -s "${DHCPD_CONTROL_DHCPD_FILE}" "${tmp_dhcpd_other_file}"; + if ! cmp -s "${DHCPD_CONTROL_DHCPD_FILE}" "${tmp_dhcpd_local_file}"; then debuglev 1 && ferror "Updating local dhcpd file." /usr/share/bgscripts/bup.sh "${DHCPD_CONTROL_DHCPD_FILE}" |