efa57b9121
Install /etc/*-release files if needed. Reported-by: Ivan A. Melnikov <iv@altlinux.org>
11 lines
313 B
Bash
Executable File
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
|