#!/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] ifdown all wan..."
	ifdown voipwan
	ifdown iptvwan
	ifdown wan
else
	logger "booting ... skip ifdown_allwan"
fi