#!/bin/sh if [ "$1" = "-i" ] && [ ! -z "$2" ]; then INT=$2 NAME_INSTEAD=$4 IFCONFIG_ACTIVE=$( /sbin/ifconfig $INT | grep "status: active" | wc -l | sed -e 's/^[ \t]*//') ||exit 3 IFCONFIG_UP=$( /sbin/ifconfig $INT | grep " [-name alt name instead of one from ifconfig]" echo "Example: check_pf_interface.sh -i re0 -name LAN" exit 3 fi