diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-10 07:02:59 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-10 07:05:58 (EST) |
commit | af48b191af437de6708f112951ebd24bba87859f (patch) | |
tree | 1989998607aa616daccd7a2a4cab921e65b3d177 /src.etc/rc.common | |
parent | 315f395aaa844d4a257fb0c9c90a4dd4a19d106c (diff) |
/etc/rc.common: Don't rely on utility links
Diffstat (limited to 'src.etc/rc.common')
-rw-r--r-- | src.etc/rc.common | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src.etc/rc.common b/src.etc/rc.common index 9db482b..c262f6b 100644 --- a/src.etc/rc.common +++ b/src.etc/rc.common @@ -10,6 +10,8 @@ set -u +BB='/bin/busybox' + SCRIPT='' ALL_CMDS='' LOG_MSG='' @@ -42,7 +44,7 @@ tty_printf() { local tty= - tty="$(tty)" && printf "${@}" >"${tty}" + tty="$("${BB}" tty)" && printf "${@}" >"${tty}" } usage() { @@ -105,7 +107,8 @@ main() if [ "x${ALL_CMDS#* ${action} }" != "x${ALL_CMDS}" ]; then [ "x${action%able}" = "x${action}" ] && \ [ -f /etc/rc.policy ] && \ - [ "x$(cat /etc/rc.policy)" = 'xdisabled' ] && return 0 + [ "x$("${BB}" cat /etc/rc.policy)" = 'xdisabled' ] && \ + return 0 ${action} es=${?} log_end ${es} |