No need for the environment for the info required.

To get `-e`(environment) for the `ps` utility in FreeBSD you need `procfs`. We can still get the info we need without it.
This commit is contained in:
Pedro Algarvio 2013-01-22 16:06:09 +00:00
parent e0c519a503
commit af8530dc0c

View file

@ -120,7 +120,7 @@ if [ $(whoami) != "root" ] ; then
exit 1
fi
CALLER=$(echo `ps a -eo pid,command | grep $$ | grep -v grep | tr -s ' '` | cut -d ' ' -f 2)
CALLER=$(echo `ps a -o pid,command | grep $$ | grep -v grep | tr -s ' '` | cut -d ' ' -f 2)
echo " * INFO: ${CALLER} $0 -- Version ${ScriptVersion}"
#--- FUNCTION ----------------------------------------------------------------
# NAME: __exit_cleanup