diff options
Diffstat (limited to 'app-admin/metalog/files/consolelog.sh-r1')
-rw-r--r-- | app-admin/metalog/files/consolelog.sh-r1 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app-admin/metalog/files/consolelog.sh-r1 b/app-admin/metalog/files/consolelog.sh-r1 new file mode 100644 index 000000000000..3a67fe7b2d3f --- /dev/null +++ b/app-admin/metalog/files/consolelog.sh-r1 @@ -0,0 +1,19 @@ +#!/bin/sh +# consolelog.sh +# For metalog -- log to a console + +set -f + +. /etc/conf.d/metalog + +: "${CONSOLE:=/dev/console}" + +# shellcheck disable=SC2016 +: "${FORMAT:='$1 [$2] $3'}" + +for d in ${CONSOLE} ; do + # shellcheck disable=SC2086 + eval echo ${FORMAT} > "${d}" +done + +exit 0 |