-# $OpenBSD: rc.subr,v 1.146 2021/11/11 12:08:36 ajacoutot Exp $
+# $OpenBSD: rc.subr,v 1.147 2021/11/12 08:38:02 ajacoutot Exp $
#
# Copyright (c) 2010, 2011, 2014-2021 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
local _pfix
[ -z "${INRC}" -o X"$1" != X"ok" ] && _pfix="($1)"
echo ${INRC:+'-n'} "${_pfix}"
- case "$1" in
- ok|killed)
- exit 0 ;;
- timeout)
- exit 142 ;;
- *)
- exit 1 ;;
- esac
+ [[ $1 == @(ok|killed) ]] && exit 0 || exit 1
}
_rc_alarm()