Startup commands for optware.

2 posts / 0 new
Last post
uusseerr
uusseerr's picture
Startup commands for optware.

I am running kong mod 18050 with optware installed in my usb hard driver. Everything runs well. I want to auto startup some optware application so I tried to add some command through webui->Admin->command->Save startup like this "

sleep 30

/opt/bin/screen /opt/bin/python /opt/bin/etc/myapp/startup.py

"

I checked nvram get rc_startup and it was there. I run the command manually and it works. But after I reboot the router I find it did not run.

Any suggestion? Thanks in advanced.

uusseerr
uusseerr's picture
Bam!

Bam!
I tried to find workaround of it. I copied the commands in a script. And I put it under /opt/etc/init.d and chmod +x with startup ext name. But it still now worked.
Please, please, somebody can give me a guide?