diff options
author | David Kaspar [Dee'Kej] <dkaspar@redhat.com> | 2018-01-02 15:47:30 +0100 |
---|---|---|
committer | Dee'Kej <deekej@linuxmail.org> | 2018-01-02 16:02:40 +0100 |
commit | 0f74b85d7d6dd96ce230950b258c9c6e1cf25335 (patch) | |
tree | 04e1e40def977517ae5d4e39dc528c55bb6f10c6 | |
parent | 2eaa9d1e7b682ce895d56966d9178dcfa0c822b1 (diff) | |
download | initscripts-0f74b85d7d6dd96ce230950b258c9c6e1cf25335.tar initscripts-0f74b85d7d6dd96ce230950b258c9c6e1cf25335.tar.gz initscripts-0f74b85d7d6dd96ce230950b258c9c6e1cf25335.tar.bz2 initscripts-0f74b85d7d6dd96ce230950b258c9c6e1cf25335.tar.xz initscripts-0f74b85d7d6dd96ce230950b258c9c6e1cf25335.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-x | sysconfig/network-scripts/ifdown-post | 2 |
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 |