From 67c2afbee8bb921e13a54953a0ad6ff8ecbe1da0 Mon Sep 17 00:00:00 2001 From: "Igor Zalatov (from Citadel PC)" Date: Wed, 3 Nov 2021 01:20:21 +0300 Subject: [PATCH] Autogenerate version of building --- general/overlay/etc/network/interfaces | 1 + general/overlay/etc/profile | 3 ++- scripts/executing_commands_for_glibc.sh | 2 ++ scripts/executing_commands_for_musl.sh | 2 ++ scripts/executing_commands_for_uclibc.sh | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/general/overlay/etc/network/interfaces b/general/overlay/etc/network/interfaces index 1e1a5fa5..84889e51 100644 --- a/general/overlay/etc/network/interfaces +++ b/general/overlay/etc/network/interfaces @@ -6,6 +6,7 @@ iface lo inet loopback auto eth0 iface eth0 inet dhcp hwaddress ether $(fw_printenv -n ethaddr || echo 00:24:B8:FF:FF:FF) + #pre-up echo -e "nameserver 77.88.8.8\nnameserver 8.8.4.4\n" >/tmp/resolv.conf manual wlan0 iface wlan0 inet dhcp diff --git a/general/overlay/etc/profile b/general/overlay/etc/profile index 8813ff3b..ff86f2b7 100644 --- a/general/overlay/etc/profile +++ b/general/overlay/etc/profile @@ -4,7 +4,8 @@ export HOME=${HOME:-/root} export TZ=$(cat /etc/TZ) if [ "$PS1" ]; then - [ -f /etc/openipc_banner ] && echo -e "\n\e[1;36m$(cat /etc/openipc_banner)\e[0m\n" + [ -f /etc/openipc_version ] && . /etc/openipc_version + [ -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" # if [ "`id -u`" -eq 0 ]; then diff --git a/scripts/executing_commands_for_glibc.sh b/scripts/executing_commands_for_glibc.sh index 84ce9bd9..b555a902 100755 --- a/scripts/executing_commands_for_glibc.sh +++ b/scripts/executing_commands_for_glibc.sh @@ -5,3 +5,5 @@ echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc"' # +date "+OPENIPC_VERSION=2.1.%m.%d" >${TARGET_DIR}/etc/openipc_version +# diff --git a/scripts/executing_commands_for_musl.sh b/scripts/executing_commands_for_musl.sh index b5e9fbe2..93d9a3cd 100755 --- a/scripts/executing_commands_for_musl.sh +++ b/scripts/executing_commands_for_musl.sh @@ -7,4 +7,6 @@ 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 # \ No newline at end of file diff --git a/scripts/executing_commands_for_uclibc.sh b/scripts/executing_commands_for_uclibc.sh index 02419173..97b9cd12 100755 --- a/scripts/executing_commands_for_uclibc.sh +++ b/scripts/executing_commands_for_uclibc.sh @@ -5,3 +5,5 @@ echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="uclibc"' # +date "+OPENIPC_VERSION=2.1.%m.%d" >${TARGET_DIR}/etc/openipc_version +#