#!/bin/sh # CHECK-INSTALL RC=0 case ${OS} in OpenBSD|NetBSD|FreeBSD) # These systems have a bridge builtin TOOL="brconfig" which ${TOOL} 1>/dev/null 2>&1 || RC=1 ;; Linux) TOOL="brctl" which ${TOOL} 1>/dev/null 2>&1 || RC=1 ;; *) TOOL="" echo "Unknown OS" && RC=1 ;; esac if test ${RC} -ne 0; then echo echo " *** Check for the bridge control utils (${TOOL}) FAILED" fi exit ${RC}