Fix support for out-of-band control in Debian switch init script.
authorBen Pfaff <blp@nicira.com>
Wed, 29 Oct 2008 23:19:43 +0000 (16:19 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 29 Oct 2008 23:19:43 +0000 (16:19 -0700)
Not tested.

debian/openflow-switch.init

index 79457997db5cc8fb626f72c9cdf60364897d2600..13f05dd331f50ec03cfc294b24f85aedfbc0d988 100755 (executable)
@@ -239,6 +239,10 @@ case "$1" in
             COMMAND_OPT="--commands=$COMMANDS"
         fi
 
+        if test "$MODE" = out-of-band; then
+            DAEMON_OPTS="$DAEMON_OPTS --out-of-band"
+        fi
+
        echo -n "Starting $DESC: "
        start-stop-daemon --start --quiet --pidfile $PIDFILE \
            --exec $DAEMON -- nl:0 $CONTROLLER --detach --pidfile=$PIDFILE \