Page 1 of 1
Package update: Entware-ng
Posted: Tue 11. Aug 2026, 18:22
by shv
Additional changes to activate Entware-NG
- Change 2nd line of file /opt/etc/opkg.cfg to
Code: Select all
fw4: src/gz Mijzelf http://zyxel.ddnss.eu/Users/Mijzelf/Entware-ng/binaries/armv5
fw5: src/gz Mijzelf http://zyxel.ddnss.eu/Users/Mijzelf/Entware-ng/binaries/armv7
- Install profile-hook package
Code: Select all
/opt/bin/opkg install profile-hook
- Reinstall opkg package to prevent segmentation fault of command opkg list
Re: New package: Entware-ng
Posted: Tue 11. Aug 2026, 18:59
by shv
Additional fixes of the Entware-NG web interface:
- Fix display of Packages in Entware-NG web interface
Edit the file /i-data/<your_PKG_installation_dir>/.PKG/Entware-ng/gui/Entware-ng/pkgcgi.cgi
Code: Select all
Change line ARCH=$( basename $(grep -v "^#" /opt/etc/opkg.conf | grep packages | awk '{print $3}' ) ) to
ARCH=` awk -F'\/' '/armv[57]$/ {print $NF}' /opt/etc/opkg.conf ) `
Edit the file /i-data/<your_PKG_installation_dir>/.PKG/Entware-ng/gui/Entware-ng/pkgcgi.cgi
Code: Select all
Change link http://downloads.zyxel.nas-central.org/Users/Mijzelf/Entware-ng/ to http://zyxel.ddnss.eu/Users/Mijzelf/Entware-ng/
Re: New package: Entware-ng
Posted: Sun 16. Aug 2026, 18:09
by shv
A new package is available in the test repo:
https://zyxel.ddnss.eu/Users/Mijzelf/zy ... o/test/shv
For fw7 devices it is recommended to execute the following commands after package installation:
Code: Select all
opkg update
opkg upgrade
opkg remove profile-hook
opkg install profile-hook
Re: Package update: Entware-ng
Posted: Mon 17. Aug 2026, 14:22
by shv
The package list in the web GUI isn't correct for armv7. It should be taken from
https://bin.entware.net/armv7sf-k2.6/ instead of
http://pkg.entware.net/binaries/armv7/.
Re: Package update: Entware-ng
Posted: Mon 17. Aug 2026, 15:55
by shv
@Mijzelf , can you please test the updated Entware package? I have currently the problem that the profile-hook sometimes works and sometimes doesn't work. It seams that it depends on the order of installation. I used different commands after a new installation of the Entware package:
- Installation of Entware package only: profile-hook works, 'opkg list' causes segmentation fault
- Installation of Entware package and additionally 'opkg install opkg': profile-hook works
- Installation of Entware package and additionally 'opkg install opkg'; 'opkg upgrade': profile-hook works
- Installation of Entware package and additionally 'opkg upgrade': profile-hook doesnt work after reboot
Directly after installation it works fine. After reboot profile-hook doesn't work in certain cases. Random Tools was installed before Entware-ng.
Possibly we could add 'opkg install opkg'; 'opkg upgrade' to the installation script of Entware-ng for armv7 devices.
Re: Package update: Entware-ng
Posted: Mon 17. Aug 2026, 20:27
by Mijzelf
The reason is in the logfile:
Code: Select all
admin@NAS520:/i-data/38aa86ff/.PKG/Entware-ng/opt/var/log$ cat Entware-ng.log
Opened logfile at Mon Aug 17 20:06:42 CEST 2026
Flushing memory buffer
Starting up
Flushing done
[20:06:42] Create symlink /opt -> /i-data/38aa86ff/.PKG/Entware-ng/opt
[20:06:42] Execute /opt/etc/init.d/rc.unslung start
[20:06:42] /opt/etc/init.d/rc.unslung: line 38: /opt/bin/find: not found
[20:06:42] Done /opt/etc/init.d/rc.unslung start
Closed logfile at Mon Aug 17 20:06:42 CEST 2026
For some reason rc.unslung uses /opt/bin/find, The package findutils is installed, but a symlink is lacking:
Code: Select all
ln -s ../libexec/find-gnu /opt/bin/find
Don't know why that symlink isn't there.
> Random Tools was installed before Entware-ng.
Random Tools stays away from /opt, while Entware resides completely in /opt, so they should interact.
> Possibly we could add 'opkg install opkg'; 'opkg upgrade' to the installation script of Entware-ng for armv7 devices.
To upgrade it directly to a newer version? Why not change the installer to install the new version directly?
Re: Package update: Entware-ng
Posted: Wed 26. Aug 2026, 10:23
by shv
I had to add a check for an existing but empty lasturl file to prevent a damaged content in ${PKG_DOWNLOAD_URL}:
Code: Select all
ExchangeDownloadUrl()
{
<------>local LASTURL="/tmp/.MetaRepository/tmp/lasturl"
<------>if [ -f ${LASTURL} && ! -s ${LASTURL} ] ; then
<------><------>local url=$(cat /tmp/.MetaRepository/tmp/lasturl )
<------><------>sed -i "s|^PKG_DOWNLOAD_URL=http://zyxel.ddnss.eu/Users/Mijzelf/zypkg-repo/fw5|PKG_DOWNLOAD_URL=${url}|" ${PKG_ROOT}/etc/ini
<------>fi
}