#!/bin/sh #---------------------------------------------------------------------------- # /etc/rc.d/fwrules-helper.common __FLI4LVER__ # layer-3 protocol agnostig helper functions for packet filter rules # # Last Update: $Id$ #---------------------------------------------------------------------------- # Checks whether passed argument is a port, a port range or a list thereof. matches_port() { echo $1 | grep -q '^[-,0-9]\+$' }