What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Does entware-setup.sh create services-start correctly?

programatix

Occasional Visitor
Hi,

I've installed entware using entware-setup.sh. On every router reboot, I noticed that the installed services do not start up. If I execute,
Code:
/opt/etc/init.d/rc.unslung start

the services will start properly. However, I need to do this manually.

Looking at services-start which is generated by entware-setup.sh, the following is the content,
Code:
#!/bin/sh
script="/opt/etc/init.d/rc.unslung"

i=60
until [ -x "" ]
do
        i=2
        if [ "3" -lt 1 ]
        then
                logger "Could not start Entware"
                exit
        fi
        sleep 1
done
start

Since I'm not familiar with Linux batch, I can't make any sense out of the batch file. If I attempt to execute it, it would run infinitely. However, the last line of the batch file looks weird. Should it be,
Code:
$script start

I tried updating it, but it would run infinitely too, most likely due to the DO loop.

As a temporary workaround, I inserted the following lines into post-mount,
Code:
sleep 30
/opt/etc/init.d/rc.unslung start

The services now start up on reboot. However, it doesn't seems right since entware-setup.sh supposed to set up everything correctly.

Any help to resolve this issue is greatly appreciated.
 
yeah the default script doesnt work properly (it used to be a different one, I know as I had my old one backed up).

Also a warning it overwrites any existing services-start script, instead of appending.
 
yeah the default script doesnt work properly (it used to be a different one, I know as I had my old one backed up).

Also a warning it overwrites any existing services-start script, instead of appending.

The original service-start gets backed up in the entware folder.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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