diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-05-31 22:54:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-05-31 22:54:29 +0000 |
commit | 3bdb5b2ee1e5f7bfd5df64b79bc4260bcb7cad22 (patch) | |
tree | d13cb6d06879ecdc08b42396dc26c493b208d316 /app-admin/showconsole/files | |
parent | merge fixes from current ~arch ebuild (diff) | |
download | historical-3bdb5b2ee1e5f7bfd5df64b79bc4260bcb7cad22.tar.gz historical-3bdb5b2ee1e5f7bfd5df64b79bc4260bcb7cad22.tar.bz2 historical-3bdb5b2ee1e5f7bfd5df64b79bc4260bcb7cad22.zip |
integrate blogd with baselayout
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'app-admin/showconsole/files')
-rw-r--r-- | app-admin/showconsole/files/bootlogger.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app-admin/showconsole/files/bootlogger.sh b/app-admin/showconsole/files/bootlogger.sh new file mode 100644 index 000000000000..250bcbf349e5 --- /dev/null +++ b/app-admin/showconsole/files/bootlogger.sh @@ -0,0 +1,31 @@ +# /lib/rcscripts/addons/bootlogger.sh: Handle logging of output at boot +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/showconsole/files/bootlogger.sh,v 1.1 2005/05/31 22:54:29 vapier Exp $ + +if [[ -x /sbin/blogd ]] ; then + +bootlog() { + local opt=$1 + shift + case ${opt} in + start) blogd_start "$@";; + sync) blogd_sync "$@";; + quit) blogd_quit "$@";; + esac +} + +blogd_start() { + /sbin/blogd >/dev/null +} + +blogd_sync() { + echo > /var/log/boot.msg + killall -IO blogd +} + +blogd_quit() { + killall -QUIT blogd +} + +fi |