Pyload auto start problem + reconfig

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
FireStorm@
DD-WRT User


Joined: 12 Mar 2018
Posts: 88

PostPosted: Mon Aug 19, 2019 17:47    Post subject: Pyload auto start problem + reconfig Reply with quote
Hi

I installed pyload (via USB Entware) but have the following two problems.

Problem 1:
It only works if I connect via putty and enter "pyload"

so pyload starts and it works. As soon as I close the putty console it stops working.

Is there any chance that I add in command line (dd-wrt interface) a code / script so that pyload start after every reboot.

Problem 2:
Whenever I start pyload via putty it says I have to configure pyload for the first time, although I already did many times before.


I added already the following command SAVE STARTUP (see attachment)

sleep 10
/opt/etc/init.d/rc.unslung start
Sponsor
FireStorm@
DD-WRT User


Joined: 12 Mar 2018
Posts: 88

PostPosted: Thu Aug 22, 2019 7:54    Post subject: Reply with quote
Hi for everyone who has the same issue. I fixed it with the following commands:

sleep 10
/opt/etc/init.d/rc.unslung start

if [ -f /mnt/sdb1/pyload.enable ]; then
sleep 4
/opt/usr/bin/python /opt/usr/share/python/pyload/pyLoadCore.py --configdir=/tmp/root/.pyload --daemon
else
exit
fi


Of course, adjust the sdb1 based on which drive you use!
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12910
Location: Netherlands

PostPosted: Thu Aug 22, 2019 8:29    Post subject: Reply with quote
maybe somewhat simpler might also work:
Code:
pyload &

from startup script.

The & should spawn its own process so that it keeps running

But I like your solution Smile

P.S. you would expect that it would be started via rc.unslung

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum