From 45d238b51a0d0bd175797994a9e2e0767cf14fd1 Mon Sep 17 00:00:00 2001 From: flz Date: Thu, 13 Apr 2006 08:30:43 +0000 Subject: Use ps true power instead of tr/tail which aren't available early enough. PR: conf/95654 Submitted by: Rong-En Fan Noticed/Fix by: many people on freebsd-current@ Approved by: cperciva (mentor) --- etc/rc.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/rc.subr b/etc/rc.subr index 20eae17..6461351 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -54,7 +54,7 @@ SYSCTL_N="${SYSCTL} -n" CMD_OSTYPE="${SYSCTL_N} kern.ostype" OSTYPE=`${CMD_OSTYPE}` ID="/usr/bin/id" -JID=`ps -p $$ -o jid | tail -1 | tr -d ' '` +JID=`ps -p $$ -o jid=` IDCMD="if [ -x $ID ]; then $ID -un; fi" case ${OSTYPE} in -- cgit v1.1