From 3fcc7515dfa0683ee9fbd16dfff9945cdcaafc28 Mon Sep 17 00:00:00 2001 From: "Igor Zalatov (from Citadel PC)" Date: Wed, 3 Nov 2021 11:41:22 +0300 Subject: [PATCH] Enable OpenIPC version script --- general/overlay/etc/profile | 2 +- scripts/executing_commands_for_glibc.sh | 2 +- scripts/executing_commands_for_musl.sh | 2 +- scripts/executing_commands_for_uclibc.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/general/overlay/etc/profile b/general/overlay/etc/profile index ff86f2b7..26bdb05f 100644 --- a/general/overlay/etc/profile +++ b/general/overlay/etc/profile @@ -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" # diff --git a/scripts/executing_commands_for_glibc.sh b/scripts/executing_commands_for_glibc.sh index b555a902..ce9dd5ee 100755 --- a/scripts/executing_commands_for_glibc.sh +++ b/scripts/executing_commands_for_glibc.sh @@ -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 # diff --git a/scripts/executing_commands_for_musl.sh b/scripts/executing_commands_for_musl.sh index 93d9a3cd..87b32544 100755 --- a/scripts/executing_commands_for_musl.sh +++ b/scripts/executing_commands_for_musl.sh @@ -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 # \ No newline at end of file diff --git a/scripts/executing_commands_for_uclibc.sh b/scripts/executing_commands_for_uclibc.sh index 97b9cd12..ca862fa3 100755 --- a/scripts/executing_commands_for_uclibc.sh +++ b/scripts/executing_commands_for_uclibc.sh @@ -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 #