mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-31 12:13:10 +00:00
Teach find_processes() to use ${name}_chroot.
Obtained from: NetBSD X-MFC after: 6.2-RELEASE
This commit is contained in:
parent
861ed04477
commit
80301cdc8e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164640
@ -1,4 +1,4 @@
|
||||
# $NetBSD: rc.subr,v 1.66 2006/04/01 10:05:50 he Exp $
|
||||
# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $
|
||||
# $FreeBSD$
|
||||
#
|
||||
# Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
|
||||
@ -261,7 +261,7 @@ _find_processes()
|
||||
|
||||
_pref=
|
||||
if [ $_interpreter != "." ]; then # an interpreted script
|
||||
read _interp < $_procname # read interpreter name
|
||||
read _interp < ${_chroot:-}/$_procname # read interpreter name
|
||||
_interp=${_interp#\#!} # strip #!
|
||||
set -- $_interp
|
||||
if [ $_interpreter != $1 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user