From d812be8e18293be80d11fa596a7028e71749a064 Mon Sep 17 00:00:00 2001 From: asomers Date: Tue, 30 May 2017 16:05:11 +0000 Subject: [PATCH] MFC r301207: 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 Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6687 git-svn-id: svn://svn.freebsd.org/base/stable/10@319220 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- etc/rc.d/routing | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/rc.d/routing b/etc/rc.d/routing index 47350846c..303ea5e20 100755 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -89,18 +89,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() -- 2.42.0