mirror of https://github.com/OpenIPC/firmware.git
Enable OpenIPC version script
parent
5e4094aa74
commit
3fcc7515df
|
@ -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"
|
||||
#
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
#
|
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue