Skip to content

Commit 3f6e92e

Browse files
Workaround for Entware Binaries using RUNPATH
Added "unset LD_LIBRARY_PATH" line as a workaround due to latest Entware binaries using the RUNPATH library search mechanism instead of the previous RPATH method. RUNPATH is searched AFTER the LD_LIBRARY_PATH definitions, whereas RPATH has higher priority than the LD_LIBRARY_PATH environment variable so it's searched FIRST.
1 parent 52308ab commit 3f6e92e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

MerlinAU.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
#
55
# Original Creation Date: 2023-Oct-01 by @ExtremeFiretop.
66
# Official Co-Author: @Martinski W. - Date: 2023-Nov-01
7-
# Last Modified: 2026-Apr-08
7+
# Last Modified: 2026-Apr-10
88
###################################################################
99
set -u
1010

1111
## Set version for each Production Release ##
1212
readonly SCRIPT_VERSION=1.6.1
13-
readonly SCRIPT_VERSTAG="26040823"
13+
readonly SCRIPT_VERSTAG="26041022"
1414
readonly SCRIPT_NAME="MerlinAU"
1515
## Set to "master" for Production Releases ##
1616
SCRIPT_BRANCH="dev"
@@ -112,6 +112,9 @@ readonly webPageFileRegExp="user([1-9]|[1-2][0-9])[.]asp"
112112
readonly webPageLineTabExp="\{url: \"$webPageFileRegExp\", tabName: "
113113
readonly webPageLineRegExp="${webPageLineTabExp}\"$SCRIPT_NAME\"\},"
114114

115+
# Workaround for Entware ELF binaries compiled with RUNPATH #
116+
unset LD_LIBRARY_PATH
117+
115118
# Give FIRST priority to built-in binaries over any other #
116119
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:$PATH"
117120

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# MerlinAU - AsusWRT-Merlin Firmware Auto Updater
22

33
## v1.6.1
4-
## 2026-Apr-08
4+
## 2026-Apr-10
55

66
## WebUI:
77
![image](https://github.com/user-attachments/assets/9c1dff99-9c13-491b-a7fa-aff924d5f02e)

0 commit comments

Comments
 (0)