From 6761eb4b11c97c3ec1763fe78dbf546d7a8fadc2 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Thu, 2 Jun 2016 15:31:24 +0000 Subject: [PATCH] Fix exit status of "service routing start " etc/rc.d/routing Ignore the exit status of options_{inet,inet6,atm}. It's meaningless. Reviewed by: hrs MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6687 --- etc/rc.d/routing | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/rc.d/routing b/etc/rc.d/routing index 3d3f5a5ff4f..2a57fa3b118 100755 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -90,18 +90,23 @@ routing_stop() setroutes() { + local _ret + _ret=0 case $1 in static) static_$2 add $3 + _ret=$? ;; options) options_$2 ;; doall) static_$2 add $3 + _ret=$? options_$2 ;; esac + return $_ret } routing_stop_inet()