aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-08-20 14:31:56 +0200
committerDee'Kej <deekej@linuxmail.org>2018-08-24 10:52:58 +0200
commitbf6a9d7d1f708077bfaad8ea109ad8b4eeb69556 (patch)
tree6dc9babd9ed79449e9c39450f8b00fe189cda0df
parente33120dd02b17e69d7feb2063300ab2b088c6db9 (diff)
downloadinitscripts-bf6a9d7d1f708077bfaad8ea109ad8b4eeb69556.tar
initscripts-bf6a9d7d1f708077bfaad8ea109ad8b4eeb69556.tar.gz
initscripts-bf6a9d7d1f708077bfaad8ea109ad8b4eeb69556.tar.bz2
initscripts-bf6a9d7d1f708077bfaad8ea109ad8b4eeb69556.tar.xz
initscripts-bf6a9d7d1f708077bfaad8ea109ad8b4eeb69556.zip
ifup-post: fix incorrect condition for RESOLV_MODS
This was causing the /etc/resolv.conf file to be always updated when RESOLV_MODS was not set... Before the commit 5d6156454bf8f6dab4a5fdd7e1bf6 we were not updating the /etc/resolv.conf file if the RESOLV_MODS was empty. See https://bugzilla.redhat.com/show_bug.cgi?id=1610411 for more info.
-rwxr-xr-xnetwork-scripts/ifup-post2
1 files changed, 1 insertions, 1 deletions
diff --git a/network-scripts/ifup-post b/network-scripts/ifup-post
index 5a89cbf3..4cb986f8 100755
--- a/network-scripts/ifup-post
+++ b/network-scripts/ifup-post
@@ -28,7 +28,7 @@ if ! is_true "$NOROUTESET"; then
fi
-if ! is_false "${PEERDNS}" || ! is_false "${RESOLV_MODS}"; then
+if ! is_false "${PEERDNS}" || is_true "${RESOLV_MODS}"; then
# Obtain the DNS entries when using PPP if necessary:
[ -n "${MS_DNS1}" ] && DNS1="${MS_DNS1}"
[ -n "${MS_DNS2}" ] && DNS2="${MS_DNS2}"