aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-post
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 12:23:27 +0200
commitd7e9663a063e087cd9c77844f56d1c17e7a19402 (patch)
tree4ba30bfe892a2c9738cf04546ac674dbe60e1464 /sysconfig/network-scripts/ifup-post
parent37d946da3211c92d29a44198dd280711375bfde5 (diff)
downloadinitscripts-d7e9663a063e087cd9c77844f56d1c17e7a19402.tar
initscripts-d7e9663a063e087cd9c77844f56d1c17e7a19402.tar.gz
initscripts-d7e9663a063e087cd9c77844f56d1c17e7a19402.tar.bz2
initscripts-d7e9663a063e087cd9c77844f56d1c17e7a19402.tar.xz
initscripts-d7e9663a063e087cd9c77844f56d1c17e7a19402.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.
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-xsysconfig/network-scripts/ifup-post2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index c002503f..7bf81f2b 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/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}"