aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2006-12-31 11:07:29 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2006-12-31 11:07:29 +0000
commitc7be7e20f6212fc2633813dbfad2a0e71ef79c07 (patch)
treee1c28f84a3c68eb062bbdc70669b27c4bf4a72f0 /etc
parent0c3063905977eef4acd1a8cfedd679680e998f16 (diff)
Notes
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.subr5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index a33c07fe9a624..e938cbc065b19 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -264,6 +264,11 @@ _find_processes()
read _interp < ${_chroot:-}/$_procname # read interpreter name
_interp=${_interp#\#!} # strip #!
set -- $_interp
+ case $1 in
+ */bin/env)
+ shift # drop env to get real name
+ ;;
+ esac
if [ $_interpreter != $1 ]; then
warn "\$command_interpreter $_interpreter != $1"
fi