#!/bin/vbash # Echo usage if no arguments passed [ $# == 3 ] || { echo "Usage: $0 "; exit 1; } GROUP=$1; INTF=$2; STATUS=$3 readonly GROUP INTF STATUS if [ "$INTF" == 'eth0' -a "$STATUS" == 'inactive' ] then /config/scripts/lb-transition-eth0-inactive.sh fi if [ "$INTF" == 'eth0' -a "$STATUS" == 'active' ] then /config/scripts/lb-transition-eth0-active.sh fi