You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/metalog/files/consolelog.sh

21 lines
269 B

#!/bin/sh
# consolelog.sh
# For metalog -- log to a console
set -f
. /etc/conf.d/metalog
if [ -z "${CONSOLE}" ] ; then
CONSOLE="/dev/console"
fi
if [ -z "${FORMAT}" ] ; then
FORMAT='$1 [$2] $3'
fi
for d in ${CONSOLE} ; do
eval echo ${FORMAT} > ${d}
done
exit 0