debian: Ensure that /var/run/openvswitch exists in controller init script.
[sliver-openvswitch.git] / debian / openvswitch-brcompat.postinst
1 #!/bin/sh
2
3 # If openvswitch-switch is installed, and then later openvswitch-brcompat is
4 # installed, make sure that ovs-brcompatd starts.
5 if test X"$1" = Xconfigure && \
6    test -x /etc/init.d/openvswitch-switch && \
7    test -e /var/run/openvswitch/ovs-vswitchd.pid; then
8     invoke-rc.d openvswitch-switch start || exit $?
9 fi
10
11 #DEBHELPER#
12
13 exit 0
14
15