X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.postinst;h=ac6ed653acebe91100796075a924a7e2557fb351;hb=7beaa082d7f422dda337780d6dd457b9a5ffe7d5;hp=c50853a11879da0501c88060c5734745b1139f5f;hpb=64624b3cf405d0ca089fe978898896087337cb90;p=openvswitch diff --git a/debian/openvswitch-switch.postinst b/debian/openvswitch-switch.postinst index c50853a1..ac6ed653 100755 --- a/debian/openvswitch-switch.postinst +++ b/debian/openvswitch-switch.postinst @@ -44,25 +44,15 @@ case "$1" in ;; esac -HAVE_KMOD="no" - -init_script_error () { - if test X"$HAVE_KMOD" = Xno; then - exit 0 - fi - exit 1 -} - # Do not fail package installation just because the kernel module # is not available. -if test -x /etc/init.d/openvswitch-switch; then - if invoke-rc.d openvswitch-switch load-kmod; then - HAVE_KMOD="yes" - fi -fi +OVS_MISSING_KMOD_OK=yes +export OVS_MISSING_KMOD_OK + +# Save and restore openflow flows during a package upgrade. +OVS_RESTART_SAVE_FLOWS=yes +export OVS_RESTART_SAVE_FLOWS #DEBHELPER# exit 0 - -