X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.init;h=aebf21e52b81a50c72d6a6bed959019b8dc09862;hb=8a5b3cfd91841c97fbc8a003857cacbd602646ed;hp=98863e3bc02c7234e2d7a99770e42774aac8bb22;hpb=d2b9f5b017df990087cd00fe5f195b829c243b73;p=sliver-openvswitch.git diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index 98863e3bc..aebf21e52 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -58,6 +58,13 @@ start () { echo "For instructions, read" fi echo "/usr/share/doc/openvswitch-datapath-source/README.Debian" + + if test X"$OVS_MISSING_KMOD_OK" = Xyes; then + # We're being invoked by the package postinst. Do not + # fail package installation just because the kernel module + # is not available. + exit 0 + fi fi set ovs_ctl ${1-start} --system-id=random if test X"$FORCE_COREFILES" != X; then