mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use ps true power instead of tr/tail which aren't available early enough.
PR: conf/95654 Submitted by: Rong-En Fan <rafan@infor.org> Noticed/Fix by: many people on freebsd-current@ Approved by: cperciva (mentor)
This commit is contained in:
parent
00a99575e3
commit
7b05b2c434
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue