aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-01-14 04:14:38 +0000
committerBill Nottingham <notting@redhat.com>2003-01-14 04:14:38 +0000
commit07368e61606ad04c335dc910a1d6ef8b45acd39b (patch)
tree793963b7f9e45e61f09c7042d2c7caba68adf950
parent543fcf9777958e648acf0cd25027523fc3bcd974 (diff)
downloadinitscripts-07368e61606ad04c335dc910a1d6ef8b45acd39b.tar
initscripts-07368e61606ad04c335dc910a1d6ef8b45acd39b.tar.gz
initscripts-07368e61606ad04c335dc910a1d6ef8b45acd39b.tar.bz2
initscripts-07368e61606ad04c335dc910a1d6ef8b45acd39b.tar.xz
initscripts-07368e61606ad04c335dc910a1d6ef8b45acd39b.zip
don't write multiple search lines (#79107, <redhat-com-box@dndtales.org>)
-rwxr-xr-xsysconfig/network-scripts/ifup-post6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index 97c002fc..c9591631 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -64,10 +64,10 @@ if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then
echo "$answer" >> $tr
;;
esac
- if [ -n "$DOMAIN" ]; then
- echo "search $DOMAIN $search" >> $tr
- fi
done
+ if [ -n "$DOMAIN" ]; then
+ echo "search $DOMAIN $search" >> $tr
+ fi
# backup resolv.conf
cp -af /etc/resolv.conf /etc/resolv.conf.save