]> git.proxmox.com Git - mirror_ovs.git/blame - debian/openvswitch-datapath-module-_KVERS_.postinst.modules.in
Rename "secchan" to "ofproto" (library) and "ovs-openflowd" (program).
[mirror_ovs.git] / debian / openvswitch-datapath-module-_KVERS_.postinst.modules.in
CommitLineData
064af421
BP
1#!/bin/sh
2# postinst script for #PACKAGE#
3#
4# see: dh_installdeb(1)
5
6set -e
7
8depmod -a
9
10#DEBHELPER#
11
12# If the switch is running, restart it. This ensures that we are using the
13# latest kernel module, because the init script will unload and reload the
14# module.
15#
16# (Ideally we'd only want to do this if this package corresponds to the
17# running kernel, but I don't know a reliable way to check.)
18INIT=/etc/init.d/openvswitch-switch
19if test -x $INIT && $INIT status; then
20 $INIT restart || true
21fi
22
23exit 0
24
25