Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/usr.sbin/service Pull up following revision(s) (requested...
details: https://anonhg.NetBSD.org/src/rev/411e9472092d
branches: netbsd-7
changeset: 800237:411e9472092d
user: snj <snj%NetBSD.org@localhost>
date: Sat Jul 08 16:06:00 2017 +0000
description:
Pull up following revision(s) (requested by sborrill in ticket #1427):
usr.sbin/service/service: revision 1.8
Only match first instance of name and rcvar in file.
diffstat:
usr.sbin/service/service | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r fabe7cf479d9 -r 411e9472092d usr.sbin/service/service
--- a/usr.sbin/service/service Thu Jun 29 12:25:04 2017 +0000
+++ b/usr.sbin/service/service Sat Jul 08 16:06:00 2017 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: service,v 1.7.2.2 2015/04/21 05:22:58 snj Exp $
+# $NetBSD: service,v 1.7.2.3 2017/07/08 16:06:00 snj Exp $
# service -- run or list system services
#
# Taken from FreeBSD: releng/10.1/usr.sbin/service/service.sh 268098
@@ -84,8 +84,8 @@
_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}
Home |
Main Index |
Thread Index |
Old Index