[package] 6to4: fix lifetime options (#9147)
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 13 Sep 2011 07:29:27 +0000 (07:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 13 Sep 2011 07:29:27 +0000 (07:29 +0000)
SVN-Revision: 28223

package/6to4/Makefile
package/6to4/files/6to4.sh

index 14c9f2227d1e50b0793a6ba464ff9d1d2c876a65..8cf66c0a28db008fecb16afb05b4934ac98e77c4 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=6to4
-PKG_VERSION:=6
+PKG_VERSION:=7
 PKG_RELEASE:=1
 
 include $(INCLUDE_DIR)/package.mk
index 5505d06c5586ab3457491b34662eda24a98a63da..f7f48e5ba465b2bd6c53cfd819ad4755fa398a83 100755 (executable)
@@ -203,8 +203,8 @@ setup_interface_6to4() {
 
                                grep -qs "^ *$adv_ifname:" /proc/net/dev && {
                                        local adv_valid_lifetime adv_preferred_lifetime
-                                       config_get adv_valid_lifetime     "${adv_interface:-lan}" adv_valid_lifetime
-                                       config_get adv_preferred_lifetime "${adv_interface:-lan}" adv_preferred_lifetime
+                                       config_get adv_valid_lifetime     "$cfg" adv_valid_lifetime
+                                       config_get adv_preferred_lifetime "$cfg" adv_preferred_lifetime
 
                                        local subnet6="$(printf "%s:%x::1/64" "$prefix6" $adv_subnet)"