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,
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,
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,
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,
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.
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.