Installing Entware from AMTM doesn't install anything to start Entware

  • ATTENTION! You'll notice a Prefix dropdown when you create a thread. If your post applies to one of the topics listed, please use that Prefix for your post. When browsing the thread list you can use the Prefix to filter the view.
  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

sbsnb

Very Senior Member
On my RT-AC88U I had installed Entware the "old" way (not AMTM) and it installed the following in /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:
[email protected]:/jffs/scripts# grep "rc.unslung" *
services-stop:/opt/etc/init.d/rc.unslung stop # Added by amtm
[email protected]:/jffs/scripts#

Is this by design?
 

Jack Yaz

Part of the Furniture
this post should probably be in the addons subforum

do you have Diversion installed too? if so check /jffs/addons/diversion/mount-entware.div
 

sbsnb

Very Senior Member
But that file is there anyway, and it does appear to have the code for starting Entware. Interesting. However, there was nothing in post-mount to call it.

Thank you.
 

ColinTaylor

Part of the Furniture
But that file is there anyway, and it does appear to have the code for starting Entware. Interesting. However, there was nothing in post-mount to call it.

Thank you.
On a new system I noted that installing Entware (not Diversion) via amtm added the following line to the end of post-mount:
Code:
. /jffs/addons/diversion/mount-entware.div # Added by amtm

I believe amtm doesn't add that line if it detects an existing installation of Entware (I'm not sure of the exact logic) because it didn't seem to add it with my existing setup.
 

sbsnb

Very Senior Member
So something removed it. I wonder if one of the other amtm install scripts accidentally used a '>' instead of a '>>' when writing to post-mount. I'll just assume for now I did it somehow.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top