X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.init;h=cb9670cbb887b83ed8e820fc8ca74824d78483ed;hb=1158389afa233c7191ba8f53820d7b128d9347fe;hp=3d187a05642dbf266a5e40485c436761ee95db1f;hpb=64624b3cf405d0ca089fe978898896087337cb90;p=openvswitch diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index 3d187a05..cb9670cb 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 2011 Nicira Networks, Inc. +# Copyright (C) 2011, 2012 Nicira Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ (test -x /usr/sbin/ovs-vswitchd && test -x /usr/sbin/ovsdb-server) || exit 0 -. /usr/share/openvswitch/scripts/ovs-lib.sh +. /usr/share/openvswitch/scripts/ovs-lib test -e /etc/default/openvswitch-switch && . /etc/default/openvswitch-switch if test X"$BRCOMPAT" = Xyes && test ! -x /usr/sbin/ovs-brcompatd; then @@ -86,6 +86,7 @@ case $1 in ;; status) ovs_ctl status + exit $? ;; force-reload-kmod) start force-reload-kmod