summaryrefslogtreecommitdiff
path: root/package/6to4/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-09-13 07:29:27 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-09-13 07:29:27 +0000
commit9cfee14217ab844601be9ee710b65e24655b2322 (patch)
tree48ee43f8d2686589812ee21bea75fa33ff055143 /package/6to4/files
parent718c8ab94078a7bc23c28da1abdde5b9f2665210 (diff)
downloadmtk-20170518-9cfee14217ab844601be9ee710b65e24655b2322.zip
mtk-20170518-9cfee14217ab844601be9ee710b65e24655b2322.tar.gz
mtk-20170518-9cfee14217ab844601be9ee710b65e24655b2322.tar.bz2
6to4: fix lifetime options (#9147)
SVN-Revision: 28223
Diffstat (limited to 'package/6to4/files')
-rwxr-xr-xpackage/6to4/files/6to4.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/6to4/files/6to4.sh b/package/6to4/files/6to4.sh
index 5505d06..f7f48e5 100755
--- a/package/6to4/files/6to4.sh
+++ b/package/6to4/files/6to4.sh
@@ -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)"