Enable OpenIPC version script

pull/65/head
Igor Zalatov (from Citadel PC) 2021-11-03 11:41:22 +03:00
parent 5e4094aa74
commit 3fcc7515df
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ export HOME=${HOME:-/root}
export TZ=$(cat /etc/TZ)
if [ "$PS1" ]; then
[ -f /etc/openipc_version ] && . /etc/openipc_version
[ -f /etc/os-release ] && . /etc/os-release
[ -f /etc/openipc_banner ] && echo -ne "\n\e[1;36m$(cat /etc/openipc_banner) v$OPENIPC_VERSION\e[0m\n\n"
[ -f /etc/openipc_donators ] && echo -e "\n\e[1;36m$(cat /etc/openipc_donators)\e[0m\n\n"
#

View File

@ -5,5 +5,5 @@
echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc"'
#
date "+OPENIPC_VERSION=2.1.%m.%d" >${TARGET_DIR}/etc/openipc_version
date "+OPENIPC_VERSION=2.1.%m.%d" >>${TARGET_DIR}/usr/lib/os-release
#

View File

@ -8,5 +8,5 @@ echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="musl"'
ln -sfv /lib/libc.so ${TARGET_DIR}/lib/ld-uClibc.so.0
ln -sfv ../../lib/libc.so ${TARGET_DIR}/usr/bin/ldd
#
date "+OPENIPC_VERSION=2.1.%m.%d" >${TARGET_DIR}/etc/openipc_version
date "+OPENIPC_VERSION=2.1.%m.%d" >>${TARGET_DIR}/usr/lib/os-release
#

View File

@ -5,5 +5,5 @@
echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="uclibc"'
#
date "+OPENIPC_VERSION=2.1.%m.%d" >${TARGET_DIR}/etc/openipc_version
date "+OPENIPC_VERSION=2.1.%m.%d" >>${TARGET_DIR}/usr/lib/os-release
#