mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
Change all inf/IX or Inf/IX to plain Infix after steering group meeting. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
24 lines
744 B
Bash
Executable File
24 lines
744 B
Bash
Executable File
#!/bin/sh
|
|
|
|
GIT_VERSION=$(git -C $BR2_EXTERNAL_INFIX_PATH describe --always --dirty --tags)
|
|
|
|
# This is a symlink to /usr/lib/os-release, so we remove this to keep
|
|
# original Buildroot information.
|
|
rm "$TARGET_DIR/etc/os-release"
|
|
{
|
|
echo "NAME=\"Infix\""
|
|
echo "VERSION=${GIT_VERSION}"
|
|
echo "ID=infix"
|
|
echo "VERSION_ID=${GIT_VERSION}"
|
|
echo "PRETTY_NAME=\"Infix by KernelKit\""
|
|
echo "HOME_URL=https://github.com/KernelKit"
|
|
} > "$TARGET_DIR/etc/os-release"
|
|
|
|
echo "Infix by KernelKit $GIT_VERSION -- $(date +"%b %e %H:%M %Z %Y")" > "$TARGET_DIR/etc/version"
|
|
|
|
# Prevent regen of host key at every boot, /etc is saved across reboots
|
|
if [ -L "$TARGET_DIR/etc/dropbear" ]; then
|
|
rm "$TARGET_DIR/etc/dropbear"
|
|
mkdir "$TARGET_DIR/etc/dropbear"
|
|
fi
|