diff options
author | Bill Nottingham <notting@redhat.com> | 2000-01-21 16:06:29 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-01-21 16:06:29 +0000 |
commit | ca16d1c8eeb18dc34ff5d9a406591ca9ee22a30f (patch) | |
tree | acef5cb9e697a2236ddf59635ed571ba77efb8d9 /sysconfig/network-scripts | |
parent | 3e5f0e38edf78a63307d6ad92e1214ec3005930e (diff) | |
download | initscripts-ca16d1c8eeb18dc34ff5d9a406591ca9ee22a30f.tar initscripts-ca16d1c8eeb18dc34ff5d9a406591ca9ee22a30f.tar.gz initscripts-ca16d1c8eeb18dc34ff5d9a406591ca9ee22a30f.tar.bz2 initscripts-ca16d1c8eeb18dc34ff5d9a406591ca9ee22a30f.tar.xz initscripts-ca16d1c8eeb18dc34ff5d9a406591ca9ee22a30f.zip |
change grep slightly
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 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... |