aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-04-12 16:55:02 +0000
committerBill Nottingham <notting@redhat.com>2000-04-12 16:55:02 +0000
commit7f56a92656579cb221dbaf279d624fdf1db11ca5 (patch)
tree4907cdb04c8730b5a6503f91533acf6e9684ab89 /sysconfig
parent778d361544fc5f979eff3952abff613a74ec8414 (diff)
downloadinitscripts-7f56a92656579cb221dbaf279d624fdf1db11ca5.tar
initscripts-7f56a92656579cb221dbaf279d624fdf1db11ca5.tar.gz
initscripts-7f56a92656579cb221dbaf279d624fdf1db11ca5.tar.bz2
initscripts-7f56a92656579cb221dbaf279d624fdf1db11ca5.tar.xz
initscripts-7f56a92656579cb221dbaf279d624fdf1db11ca5.zip
check for RESOLV_MODS before testing
Diffstat (limited to 'sysconfig')
-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 76d00e4c..e0517ec0 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -28,7 +28,7 @@ if [ "$2" = "boot" -a -n "$NEEDHOSTNAME" -a "${DEVICE}" != lo -a "${DEVICETYPE}"
eval `/bin/ipcalc --silent --hostname ${IPADDR}` && set_hostname $HOSTNAME
fi
-if [ "$PEERDNS" != "no" -o "$RESOLV_MODS" != "no" ]; then
+if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then
[ -n "$MS_DNS1" ] && DNS1=$MS_DNS1
[ -n "$MS_DNS2" ] && DNS2=$MS_DNS2
if [ -n "$DNS1" ] && ! grep -q "^nameserver $DNS1" /etc/resolv.conf &&