- ps="pstree -wg3"
-elif [[ "$OSTYPE" =~ '^freebsd' ]]; then
- ps="ps -aSdfxwwouser=USR -ogroup=GRP -opid,nice=NI \
- -o%cpu,%mem,tty,stat,start=START -oetime,command"
-elif check-busybox ps; then
+ ps='pstree -wg3'
+} elif [[ "$OSTYPE" =~ '^freebsd' ]] {
+ ps='ps -aSdfxwwouser=USR -ogroup=GRP -opid,nice=NI \
+ -o%cpu,%mem,tty,stat,start=START -oetime,command'
+} elif [[ $commands[ps]:A:t == busybox ]] {