aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1999-11-02 16:15:52 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1999-11-02 16:15:52 +0000
commita47c92090fcb3c21586d6ef452f9299cc205e97c (patch)
tree7ce5dd98c42ae9f5572869a660c4065ae8bbadc8 /sysconfig
parent075097eebbe3517588943cf51f533824c3a12bab (diff)
downloadinitscripts-a47c92090fcb3c21586d6ef452f9299cc205e97c.tar
initscripts-a47c92090fcb3c21586d6ef452f9299cc205e97c.tar.gz
initscripts-a47c92090fcb3c21586d6ef452f9299cc205e97c.tar.bz2
initscripts-a47c92090fcb3c21586d6ef452f9299cc205e97c.tar.xz
initscripts-a47c92090fcb3c21586d6ef452f9299cc205e97c.zip
DNS{1,2} useful for more than just PPP
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 838eb620..4a3d459c 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -28,7 +28,7 @@ if [ -n "$NEEDHOSTNAME" -a "${DEVICE}" != lo -a "${DEVICETYPE}" != "ppp" -a "${D
eval `/bin/ipcalc --silent --hostname ${IPADDR}` && set_hostname $HOSTNAME
fi
-if [ "$DEVICETYPE" = ppp -a "$PEERDNS" != no -a -n "$DNS1" ] &&
+if [ "$PEERDNS" != no -a -n "$DNS1" ] &&
tr=`mktemp /tmp/resolv.XXXXXX` ; then
# replace only the first two nameserver lines; cannot count on awk
# and do not know if sed is capable of this...