#!/bin/sh
local do_if=""

now=$(cat /proc/uptime | awk 'FS="[.]+" {print $1}')

[ -n "$1" -a "$1" == "-F" ] && {
	do_if="1"
}

if [ $now -ge 60 -o "$do_if" == "1" ]; then
	logger "[WAN] ifup all wan..."
	ifup voipwan
	ifup iptvwan
	ifup wan
	sh /lib/firewall/user.sh &
else
	logger "booting ... skip ifup_allwan"
fi