aboutsummaryrefslogtreecommitdiff
path: root/debian/openvswitch-switch.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openvswitch-switch.postinst')
-rwxr-xr-xdebian/openvswitch-switch.postinst18
1 files changed, 2 insertions, 16 deletions
diff --git a/debian/openvswitch-switch.postinst b/debian/openvswitch-switch.postinst
index c50853a1..7b9d7bc8 100755
--- a/debian/openvswitch-switch.postinst
+++ b/debian/openvswitch-switch.postinst
@@ -44,25 +44,11 @@ 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
#DEBHELPER#
exit 0
-
-