diff --git a/general/overlay/etc/profile b/general/overlay/etc/profile index 997fbe3d..bb6a7511 100644 --- a/general/overlay/etc/profile +++ b/general/overlay/etc/profile @@ -3,6 +3,7 @@ export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) export HOME=${HOME:-/root} export TZ=$(cat /etc/TZ) export SENSOR=$(fw_printenv -n sensor) +export SOC=$(fw_printenv -n soc) echo_c() { echo -ne "\e[1;$1m$2\e[0m"; } diff --git a/general/scripts/rootfs_script.sh b/general/scripts/rootfs_script.sh index a9608e69..adaf7922 100755 --- a/general/scripts/rootfs_script.sh +++ b/general/scripts/rootfs_script.sh @@ -17,6 +17,6 @@ if grep -q "USES_MUSL" ${BR2_CONFIG}; then LIST=${BR2_EXTERNAL}/scripts/excludes/${OPENIPC_SOC_MODEL}_${OPENIPC_FLAVOR}.list test -e ${LIST} && xargs -a ${LIST} -I % rm -rf ${TARGET_DIR}/% - ln -sf /lib/libc.so ${TARGET_DIR}/lib/ld-uClibc.so.0 + ln -sf libc.so ${TARGET_DIR}/lib/ld-uClibc.so.0 ln -sf ../../lib/libc.so ${TARGET_DIR}/usr/bin/ldd fi