Fix typos in dhclient-script

This commit is contained in:
Pavel Zhukov 2017-08-01 12:02:52 +02:00
parent c2c0b1a042
commit b2ad46b1a6
2 changed files with 6 additions and 3 deletions

View File

@ -735,7 +735,7 @@ validate_resolv_conf()
# Remove broken link and hope NM will survive
if [ -h "${RESOLVCONF}" -a ! -e "${RESOLVCONF}" ];
then
logmessage "${RESOLVCONF) is broken symlink. Recreating..."
logmessage "${RESOLVCONF} is broken symlink. Recreating..."
unlink "${RESOLVCONF}"
touch "${RESOLVCONF}"
fi;
@ -801,7 +801,7 @@ source_config ()
run_hook "${ETCDIR}/dhclient-enter-hooks" || exit $?
run_hookdir "${ETCDIR}/dhclient-enter-hooks.d" || exit $?
[ "${PEERDNS}" = "no" ] || validate_resilv_conf()
[ "${PEERDNS}" = "no" ] || validate_resolv_conf
if [ -f /etc/sysconfig/network ]; then
. /etc/sysconfig/network

View File

@ -20,7 +20,7 @@ Summary: Dynamic host configuration protocol software
Name: dhcp
Version: 4.3.6
%global VERSION %%{version}%%{prever}
Release: 3%{?dist}
Release: 4%{?dist}
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
# dcantrell maintaining the package) made incorrect use of the epoch and
# that's why it is at 12 now. It should have never been used, but it was.
@ -661,6 +661,9 @@ done
%endif
%changelog
* Tue Aug 1 2017 Pavel Zhukov <pzhukov@redhat.com> - 12:4.3.6-4
- Fix typos in dhclient-script
* Thu Jul 27 2017 Pavel Zhukov <pzhukov@redhat.com> - 12:4.3.6-3
- Recreate /etc/resolv.conf if NetworkManager screwed it up (#1475279)