3 # Whatever executable basename we happen to be, lets replace it
5 RUNSH_BASENAME=`basename $0`
6 CONTROLLER_RUNSH=`echo $0|sed "s;$RUNSH_BASENAME;run.internal.sh;"`
10 # Be extra careful to pass on usage from run.internal.sh, but add our
11 # usage as well in the standard way
13 $CONTROLLER_RUNSH -help | sed 's/\[-help\]/\[-help\] \[-of13\] \[-bundlefilter \<bundlefilter\> \]/' | sed "s;$CONTROLLER_RUNSH;$0;"
23 -bundlefilter) (( i += 1 )); BUNDLEFILTER="|${@:$i:1}";;
30 OF_FILTER="org.opendaylight.(openflowplugin|openflowjava)"
31 if [ $OF13 -ne 0 ]; then
32 OF_FILTER="org.opendaylight.controller.(thirdparty.org.openflow|protocol_plugins.openflow)"
35 # Make sure we suck out our additional args so as to not confuse
37 NEWARGS=`echo $@|sed 's/-of13//'|sed 's/-bundlefilter[ ]*[^ ]*//'`
39 # Build the filter string
42 FILTER=${FILTERBEGINING}${OF_FILTER}${BUNDLEFILTER}${FILTERENDING}
45 $CONTROLLER_RUNSH -Dfelix.fileinstall.filter="$FILTER" $NEWARGS