diff options
-rwxr-xr-x | sysconfig/network-scripts/ifup-post | 6 |
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 |