diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1999-11-02 16:15:52 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1999-11-02 16:15:52 +0000 |
commit | a47c92090fcb3c21586d6ef452f9299cc205e97c (patch) | |
tree | 7ce5dd98c42ae9f5572869a660c4065ae8bbadc8 /sysconfig/network-scripts | |
parent | 075097eebbe3517588943cf51f533824c3a12bab (diff) | |
download | initscripts-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/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup-post | 2 |
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... |