Pull up following revision(s) (requested by sborrill in ticket #9):
usr.sbin/service/service: revision 1.8 Only match first instance of name and rcvar in file.
This commit is contained in:
parent
abf96b0d71
commit
fd2f5ff860
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $NetBSD: service,v 1.7 2015/04/05 11:33:15 apb Exp $
|
||||
# $NetBSD: service,v 1.7.10.1 2017/06/06 09:20:14 martin Exp $
|
||||
# service -- run or list system services
|
||||
#
|
||||
# Taken from FreeBSD: releng/10.1/usr.sbin/service/service.sh 268098
|
||||
|
@ -84,8 +84,8 @@ if [ -n "${ENABLED}" ]; then
|
|||
_rc_files | $flt | while read file
|
||||
do
|
||||
if grep -q ^rcvar "$file"; then
|
||||
eval $( grep ^name= "$file" )
|
||||
eval $( grep ^rcvar "$file" )
|
||||
eval $( grep -m 1 ^name= "$file" )
|
||||
eval $( grep -m 1 ^rcvar "$file" )
|
||||
if [ -n "${rcvar}" ]; then
|
||||
load_rc_config ${rcvar}
|
||||
checkyesno ${rcvar} 2>/dev/null && echo ${file}
|
||||
|
|
Loading…
Reference in New Issue