[OpenWrt-Devel] [PATCH] Retry 6rd if wan is down
yszhou4tech at gmail.com
Fri Feb 13 07:09:40 EST 2015
On 13 February 2015 at 17:05, Daniel Gimpelevich
<daniel at gimpelevich.san-francisco.ca.us> wrote:
> Currently, if you have dual WAN and the link needed for 6rd is down, it
> just silently fails. This patch makes it retry in case the link comes up.
> Signed-off-by: Daniel Gimpelevich <daniel at gimpelevich.san-francisco.ca.us>
> --- a/package/network/ipv6/6rd/files/6rd.sh (revision 44437)
> +++ b/package/network/ipv6/6rd/files/6rd.sh (working copy)
> @@ -33,7 +33,8 @@
> if ! network_get_ipaddr ipaddr "$wanif"; then
> - proto_notify_error "$cfg" "NO_WAN_LINK"
> + sleep 60
> + proto_setup_failed "$cfg"
A wild guess is that `return 1` or `exit 1` should do the trick.
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel