mkimage-profiles/features.in/init/rescue/image-scripts.d/65-os-release
Anton Midyukov efa57b9121 live, init: move 65-os-release from live to init
Install /etc/*-release files if needed.

Reported-by: Ivan A. Melnikov <iv@altlinux.org>
2020-01-13 12:09:51 +03:00

11 lines
313 B
Bash
Executable File

#!/bin/sh
# Install /etc/*-release files if needed
if [ -d /usr/share/branding-data-current ]; then
[ -e /etc/altlinux-release ] ||
cp -at /etc -- \
/usr/share/branding-data-current/release/altlinux-release
[ -e /etc/os-release ] ||
cp -at /etc -- \
/usr/share/branding-data-current/release/os-release
fi