1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-13 17:36:27 +01:00
OpenVoiceOS/buildroot-external/board/raspberrypi/post-build.sh
j1nx 1e48bddce4 Create and write proper OS & Machine indentification information.
Following the XDG standards;
https://www.freedesktop.org/software/systemd/man/os-release.html
https://www.freedesktop.org/software/systemd/man/machine-info.html

/usr/lib/os-release

NAME="OpenVoiceOS"
VERSION="0.1.0 RaspberryPi 4 64bit"
ID=ovos
VERSION_ID=0.1.0
PRETTY_NAME="OpenVoiceOS 0.1.0 RaspberryPi 4 64bit"
CPE_NAME=cpe:2.3openvoiceos:ovos:0.1.0:*:development:*:*:*:rpi4-64:*
HOME_URL=https://github.com/OpenVoiceOS/OpenVoiceOS
DOCUMENTATION_URL=https://github.com/OpenVoiceOS/OpenVoiceOS/tree/develop/documentation
SUPPORT_URL=https://github.com/OpenVoiceOS/OpenVoiceOS/issues
VARIANT="OpenVoiceOS - Mycroft Edition"
VARIANT_ID=ovos-rpi4-64-mycroft

/etc/machine-info

CHASSIS=embedded
DEPLOYMENT=development
2020-12-25 12:47:35 +01:00

17 lines
491 B
Bash
Executable File

#!/bin/sh
set -u
set -e
BOARD_DIR="$(dirname $0)"
# Add a console on tty1
#if [ -e ${TARGET_DIR}/etc/inittab ]; then
# grep -qE '^tty1::' ${TARGET_DIR}/etc/inittab || \
# sed -i '/GENERIC_SERIAL/a\
#tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab
#fi
cp -f ../buildroot-external/board/raspberrypi/config.txt ${BINARIES_DIR}/rpi-firmware/config.txt
cp -f ../buildroot-external/board/raspberrypi/cmdline.txt ${BINARIES_DIR}/rpi-firmware/cmdline.txt