Unverified Commit 7c9f712d by Christian Brauner Committed by GitHub

Merge pull request #2812 from Rachid-Koucha/patch-7

/etc/resolv.conf grows indefinitely
parents 8f2cce18 567f8915
...@@ -164,7 +164,10 @@ case "\$1" in ...@@ -164,7 +164,10 @@ case "\$1" in
[ -n "\$domain" ] && echo search \$domain > /etc/resolv.conf [ -n "\$domain" ] && echo search \$domain > /etc/resolv.conf
for i in \$dns ; do for i in \$dns ; do
echo nameserver \$i >> /etc/resolv.conf grep "nameserver \$i" /etc/resolv.conf > /dev/null 2>&1
if [ \$? -ne 0 ]; then
echo nameserver \$i >> /etc/resolv.conf
fi
done done
;; ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment