mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
Don't use a tarball for patches, stop tying initscript to PV, drop obolete Debian handling cruft, various other simplifications and style fixes. Signed-off-by: John Helmert III <ajak@gentoo.org>
26 lines
570 B
Plaintext
26 lines
570 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
name="log_bmc"
|
|
description="Add SEL entries to indicate OS Boot status"
|
|
command=/usr/libexec/log_bmc.sh
|
|
command_args=""
|
|
: "${DEVICENUM:=0}" # which BMC
|
|
required_files=/dev/ipmi${DEVICENUM}
|
|
|
|
depend() {
|
|
use modules
|
|
after ipmievd # to capture our own log event
|
|
keyword -docker -lxc -prefix -systemd-nspawn
|
|
}
|
|
|
|
start() {
|
|
# TODO: should this keep start so it only fires once per boot?
|
|
"${command}" os_boot
|
|
}
|
|
|
|
stop() {
|
|
"${command}" os_shutdown
|
|
}
|