JA93
Occasional Visitor
I did clean install(router reset) to see what was going on with people reporting Tailscale exits upon ssh disconnect. I installed entware(via amtm) and tailscale afterwards, but I had same issue with exiting. Installing ca-bundle didnt fix the thing but entware-opt did. And by that I mean that rc.func and rc.unslug were missing(adding manually didnt work either), but installing entware-opt fixed it. W/O them auto-start is impossible, at least in my case.If the router is running RMerlin's F/W and you have installed Entware successfully using AMTM then you should have the following line in your "/jffs/scripts/post-mount" script:
The above line ensures that all installed Entware services are started during reboot after the USB drive partition where Entware was installed is mounted. This assumes, of course, that the script starting the specific service (e.g. "Bash:. /jffs/addons/amtm/mount-entware.mod # Added by amtm
/opt/etc/init.d/S06tailscaled
") follows the expected structure & format to work with the Entware services startup process.
If one does not have the above line in the "post-mount" script it would indicate that Entware was not installed via AMTM, or perhaps it was not installed successfully or completely for some reason.
If the above line is present in the "post-mount" script but the service is not started during reboot, it's likely that something in the service script is not properly set up as expected or a dependency is missing so the service fails when called by the Entware startup process.
Note that adding a call to start up an Entware service in the "services-start" script is generally not a good idea because there's no guarantee that the USB drive partition where Entware is installed has already been mounted *before* the "services-start" is executed. Entware services should be started from the "post-mount" script (or from another script executed within it).
Just my 2 cents.
If "./jffs/addons/amtm/mount-entware.mod" works, then its even better and I thank you for sharing.
PS
I'm not making another video just for installing entware-opt
Last edited: