aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-01-02 15:47:30 +0100
committerDee'Kej <deekej@linuxmail.org>2018-01-02 17:29:40 +0100
commit2caa3bfbe717f92d0e0677ea3dc1290a54a8bcf7 (patch)
tree3c973cb9fc9618eef087c8058981f86b0c3b3c0d
parentcfa035c7c3aeacea60d4e12bebde7ce8e1ecc54b (diff)
downloadinitscripts-2caa3bfbe717f92d0e0677ea3dc1290a54a8bcf7.tar
initscripts-2caa3bfbe717f92d0e0677ea3dc1290a54a8bcf7.tar.gz
initscripts-2caa3bfbe717f92d0e0677ea3dc1290a54a8bcf7.tar.bz2
initscripts-2caa3bfbe717f92d0e0677ea3dc1290a54a8bcf7.tar.xz
initscripts-2caa3bfbe717f92d0e0677ea3dc1290a54a8bcf7.zip
ifdown-post: fix logical error in commit 5d61564
Empty ${RESOLV_MODS} was causing a deletion of config files in /etc/ppp/peers/* Resolves: #155
-rwxr-xr-xsysconfig/network-scripts/ifdown-post2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post
index afafc0d5..9db16ad3 100755
--- a/sysconfig/network-scripts/ifdown-post
+++ b/sysconfig/network-scripts/ifdown-post
@@ -22,7 +22,7 @@ source_config
# to have always correct condition below...
update_DNS_entries
-if ! is_false "${PEERDNS}" || ! is_false "${RESOLV_MODS}" && \
+if ! is_false "${PEERDNS}" || is_true "${RESOLV_MODS}" && \
[ "${DEVICETYPE}" = "ppp" -o "${DEVICETYPE}" = "ippp" -o -n "${DNS1}" \
-o "${BOOTPROTO}" = "bootp" -o "${BOOTPROTO}" = "dhcp" ] ; then
if [ -f /etc/resolv.conf.save ]; then