From b9ddc6aaaea369faf7787b690de2ae56ffd08ad9 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Tue, 21 Sep 2010 12:06:13 +0900 Subject: [PATCH] debian: Dont fail init if module cant be inserted The problem here is that the daemon is started/restarted on package installation, but the module may not be present at that time and (as far as I know) its bad form to fail the package installation in that circumstance. In keeping with the way ipvsadm handles a similar problem, exit with a non-error exit status if the module can't be inserted. The loud error message is still displayed. Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- debian/openvswitch-switch.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index 34b5604dc..600c18564 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -157,7 +157,7 @@ load_module() { echo "For instructions, read" echo "/usr/share/doc/openvswitch-datapath-source/README.Debian" fi - exit 1 + exit 0 fi } -- 2.45.2