From: Simon Horman Date: Tue, 21 Sep 2010 03:06:13 +0000 (+0900) Subject: debian: Dont fail init if module cant be inserted X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9ddc6aaaea369faf7787b690de2ae56ffd08ad9;p=openvswitch 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 --- diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index 34b5604d..600c1856 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 }