Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/usr.sbin/service Pull up following revision(s) (requested...
details: https://anonhg.NetBSD.org/src/rev/a856c06a81d5
branches: netbsd-8
changeset: 433976:a856c06a81d5
user: martin <martin%NetBSD.org@localhost>
date: Tue Jun 06 09:20:14 2017 +0000
description:
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.
diffstat:
usr.sbin/service/service | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r a0b65d35cdf1 -r a856c06a81d5 usr.sbin/service/service
--- a/usr.sbin/service/service Tue Jun 06 07:28:29 2017 +0000
+++ b/usr.sbin/service/service Tue Jun 06 09:20:14 2017 +0000
@@ -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 @@
_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