| # ----------------------------------------------------------------------------- |
| # Checks that all intents in the system have a given state. |
| # ----------------------------------------------------------------------------- |
| [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 |
| . $ONOS_ROOT/tools/build/envDefaults |
| trap "rm -f $aux 2>/dev/null" EXIT |
| echo onos-find-driver: $* |
| onos $target "onos:drivers" | tee $aux |
| driverString=`cat $aux | grep "driver=$driver"` |
| if [ driverString != "" ] |
| for token in $driverString |
| if [[ $token =~ "driver=" ]] |
| echo "@stc ${id}Driver=${token}" |