On my RT-AC88U I had installed Entware the "old" way (not AMTM) and it installed the following in
That code was problematic, so I moved it to post-mount, like this:
On my RT-AX86U I installed Entware with AMTM and there's nothing in services-start or anything else in /jffs/scripts that starts Entware.
Is this by design?
/jffs/scripts/services-start
:
Code:
RC='/opt/etc/init.d/rc.unslung'
i=30
until [ -x "$RC" ] ; do
i=$(($i-1))
if [ "$i" -lt 1 ] ; then
logger "Could not start Entware"
exit
fi
sleep 1
done
That code was problematic, so I moved it to post-mount, like this:
Code:
if [ -d "$1/entware" ] ; then
ln -nsf $1/entware /tmp/opt
if [ -r /opt/etc/init.d/rc.unslung ]; then
logger "$0:" "Starting Entware..."
/opt/etc/init.d/rc.unslung start
else
logger "$0:" "/opt/etc/init.d/rc.unslung is not readable. Can't start Entware."
fi
fi
On my RT-AX86U I installed Entware with AMTM and there's nothing in services-start or anything else in /jffs/scripts that starts Entware.
Code:
admin@RT-AX86U-AA28:/jffs/scripts# grep "rc.unslung" *
services-stop:/opt/etc/init.d/rc.unslung stop # Added by amtm
admin@RT-AX86U-AA28:/jffs/scripts#
Is this by design?