[backfire] merge r28291
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 23 Sep 2011 08:36:40 +0000 (08:36 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 23 Sep 2011 08:36:40 +0000 (08:36 +0000)
SVN-Revision: 28292

package/base-files/Makefile
package/base-files/files/lib/network/config.sh

index ff00fb4a8764dc76f8b19355ec1f817468d9ff68..26a3c0c46bad980885d5d3118af2c8aaa547bc7b 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=43.27
+PKG_RELEASE:=43.28
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 PKG_BUILD_DEPENDS:=opkg/host
index 0892282ddf0685ba87189c97a60124cf92fc739d..b73c92e90eca6a92fae677f2837051600d72f119 100755 (executable)
@@ -106,7 +106,7 @@ add_dns() {
        local dns
        local add
        for dns in "$@"; do
-               grep -qsF "nameserver $dns" /tmp/resolv.conf.auto || {
+               grep -qsE "^nameserver ${dns//./\\.}$" /tmp/resolv.conf.auto || {
                        add="${add:+$add }$dns"
                        echo "nameserver $dns" >> /tmp/resolv.conf.auto
                }
@@ -126,7 +126,7 @@ remove_dns() {
                [ -f /tmp/resolv.conf.auto ] && {
                        local dns=$(uci_get_state network "$cfg" resolv_dns)
                        for dns in $dns; do
-                               sed -i -e "/^nameserver $dns$/d" /tmp/resolv.conf.auto
+                               sed -i -e "/^nameserver ${dns//./\\.}$/d" /tmp/resolv.conf.auto
                        done
                }