Commit efa57b91 authored by Anton Midyukov's avatar Anton Midyukov Committed by Michael Shigorin

live, init: move 65-os-release from live to init

Install /etc/*-release files if needed. Reported-by: 's avatarIvan A. Melnikov <iv@altlinux.org>
parent 5e20cec7
#!/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
#!/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
#!/bin/sh
# Install /etc/*-release files on live if needed
if [ -d /usr/share/branding-data-current ] && \
! [ -e /etc/altlinux-release ] && \
! [ -e /etc/os-release ]; then
cp -a /usr/share/branding-data-current/release/*-release /etc/
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment