From d8812c0d0cc8ed3dd279bd1fcc1ce616532e11ba Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Tue, 7 Sep 1999 18:15:42 +0000 Subject: do not read /etc/resolv.conf forever... --- sysconfig/network-scripts/ifup-post | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post index 43b7126e..8110d324 100755 --- a/sysconfig/network-scripts/ifup-post +++ b/sysconfig/network-scripts/ifup-post @@ -34,7 +34,7 @@ if [ "$DEVICETYPE" = ppp -a "$PEERDNS" != no -a -n "$DNS1" ] && # and do not know if sed is capable of this... current_replacement="$DNS1" next_replacement="$DNS2" - while read answer < /etc/resolv.conf ; do + cat /etc/resolv.conf | while read answer ; do case $answer in nameserver*) if [ -n "$current_replacement" ] ; then -- cgit v1.2.1