From ca16d1c8eeb18dc34ff5d9a406591ca9ee22a30f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 21 Jan 2000 16:06:29 +0000 Subject: change grep slightly --- sysconfig/network-scripts/ifup-post | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post index 6c7d36c0..a56860e8 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 [ "$PEERDNS" != no -a -n "$DNS1" ] && ! grep -q "$DNS1" /etc/resolv.conf && +if [ "$PEERDNS" != no -a -n "$DNS1" ] && ! grep -q "^nameserver $DNS1" /etc/resolv.conf && 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... -- cgit v1.2.1