File: acpi-override

package info (click to toggle)
acpi-override 0.1+nmu1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 52 kB
  • sloc: sh: 15; makefile: 5
file content (24 lines) | stat: -rwxr-xr-x 594 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# Copyright (C) Thadeu Lima de Souza Cascardo <cascardo@debian.org>
# GPLv2+

set -eu

case "${1:-}" in
  prereqs)
    exit 0
    ;;
esac

. /usr/share/initramfs-tools/hook-functions

ACPI="$(mktemp -d "${TMPDIR:-/var/tmp}/initramfs_acpi_XXXXXX")" || exit 1
ACPI_CPIO="$(mktemp "${TMPDIR:-/var/tmp}/initramfs_acpi_XXXXXX_cpio")" || exit 1
mkdir -p "$ACPI/kernel/firmware/acpi/"
cp -a /var/lib/acpi-override/* "$ACPI/kernel/firmware/acpi/" || exit 1
 ( ( cd "$ACPI" ; find . | cpio -o -H newc ) ) > "$ACPI_CPIO"

prepend_earlyinitramfs "$ACPI_CPIO"

rm -rf "${ACPI}"
rm "${ACPI_CPIO}"