blob: a1141789c856d163ad62948f99d466d28deb380a [file] [log] [blame]
David K. Bainbridge317e7d72016-05-11 08:31:44 -07001#!/bin/bash
2
3BG=0
4
5while [ $# -gt 0 ]; do
6 case $1 in
7 -bg|-background)
8 BG=1
9 esac
10 shift
11done
12
13if [ $BG -eq 1 ]; then
14 nohup brcm-indigo-ofdpa-ofagent --dpid={{ switch_id }} --controller={{ controller_ip }} 2>&1 > connect.log &
15else
16 brcm-indigo-ofdpa-ofagent --dpid={{ switch_id }} --controller={{ controller_ip }}
17fi