Autogenerate version of building

pull/65/head
Igor Zalatov (from Citadel PC) 2021-11-03 01:20:21 +03:00
parent dd7b469799
commit 67c2afbee8
5 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

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

View File

@ -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
#

View File

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