X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.postinst;h=ac6ed653acebe91100796075a924a7e2557fb351;hb=305b76debf72120672a8ba81d3356b6dccb1da9a;hp=4be5a30c76c60ee27c5a4799b31e71f7b3364d18;hpb=a0bc29a541fc7dc6e20137d5558e2094d614e6ab;p=sliver-openvswitch.git diff --git a/debian/openvswitch-switch.postinst b/debian/openvswitch-switch.postinst index 4be5a30c7..ac6ed653a 100755 --- a/debian/openvswitch-switch.postinst +++ b/debian/openvswitch-switch.postinst @@ -33,17 +33,6 @@ case "$1" in fi done fi - - if /etc/init.d/openvswitch-switch status >/dev/null 2>&1; then - running=true - /etc/init.d/openvswitch-switch stop - else - running=false - fi - - if $running; then - /etc/init.d/openvswitch-switch start - fi ;; abort-upgrade|abort-remove|abort-deconfigure) @@ -55,8 +44,15 @@ case "$1" in ;; esac -#DEBHELPER# +# Do not fail package installation just because the kernel module +# is not available. +OVS_MISSING_KMOD_OK=yes +export OVS_MISSING_KMOD_OK -exit 0 +# Save and restore openflow flows during a package upgrade. +OVS_RESTART_SAVE_FLOWS=yes +export OVS_RESTART_SAVE_FLOWS +#DEBHELPER# +exit 0