#!/bin/bash # CHECK-INSTALL function error { echo echo ' *** Check for the bridge control utils (brctl) FAILED' exit 1 } which brctl 1>/dev/null 2>&1 || error