#!/bin/sh

# If booting, wait until rcS script finishes
tries=0
pidof rcS > /dev/null
while [ $? = 0 -a $tries -lt 60 ] ; do
    sleep 1
    tries=`expr $tries + 1`
    pidof rcS > /dev/null
done

RESET_SCRIPT=/disk/netfilter/rc.reset
[ -f $RESET_SCRIPT ] && sh $RESET_SCRIPT

mv $0 $0.resetFirewall.sh

