#!/bin/sh

# If we are being called by ifupdown when it changes a PPP interface,
# and if the appropriate file is in place to do this for PPP anyway,
# don't do anything.
[ -x /etc/ppp/ip-up.d/50guarddog -a "$MODE" = "start" -a "$METHOD" = "ppp" ] &&
exit 0
[ -x /etc/ppp/ip-down.d/50guarddog -a "$MODE" = "stop" -a "$METHOD" = "ppp" ] &&
 exit 0

# setup guarddog firewall
if [ -x /etc/rc.firewall ]; then
  /bin/bash /etc/rc.firewall
fi
