Browse Source

Run acpidump(8) at system startup and store ACPI tables in the

/var/db/acpi directory. Later sendbug(1) will use this data in
bug reports. That directory is created by mtree.
idea from and OK deraadt
OK kettenis
OPENBSD_6_1
rpe 8 years ago
parent
commit
a74bbb4921
2 changed files with 9 additions and 2 deletions
  1. +3
    -1
      src/etc/mtree/4.4BSD.dist
  2. +6
    -1
      src/etc/rc

+ 3
- 1
src/etc/mtree/4.4BSD.dist View File

@ -1,4 +1,4 @@
# $OpenBSD: 4.4BSD.dist,v 1.289 2016/09/07 18:31:00 jmc Exp $
# $OpenBSD: 4.4BSD.dist,v 1.290 2016/09/27 20:18:34 rpe Exp $
/set type=dir uname=root gname=wheel mode=0755
@ -623,6 +623,8 @@ var
# ./var/db
db
acpi
..
ldap mode=0700
..
ns


+ 6
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.486 2016/07/10 09:08:18 rpe Exp $
# $OpenBSD: rc,v 1.487 2016/09/27 20:18:34 rpe Exp $
# System startup script run by init on autoboot or after single-user.
# Output and error are redirected to console by init, and the console is the
@ -451,6 +451,11 @@ if [[ -d /var/crash ]]; then
savecore $savecore_flags /var/crash
fi
# Store ACPI tables in /var/db/acpi to be used by sendbug(1).
if [[ -x /usr/sbin/acpidump ]]; then
acpidump -o /var/db/acpi/
fi
if [[ $check_quotas == YES ]]; then
echo -n 'checking quotas:'
quotacheck -a


Loading…
Cancel
Save