NewbieWanderer
New Around Here
Hello. I want to compile some small Golang app for this device and add it to autorun. Don't have the app now, so right now i'm just testing with a small script that does almost nothing - just creates a dir. Suppose - if i could autorun this script then i could use the same mechanism for autorun my app.
test.sh
I'm not sure how to do this - there is no /etc/init.d or systemctl. I have tried some things like this and this. The problem - there is no scripts dir in /jffs, no Persistent JFFS2 partition section in my Administartion/System page, no such key as jffs2_scripts in nvram and if i do nvram set jffs2_scripts="1"; nvram commit; reboot - no scripts dir is created or something. I tried to create a cron job, but it not survives a reboot - cru l is empty after this. The wiki says about available scripts like services-start. Not sure where are they available - i have only those i have created. Tried to make services-start with cron job that starts test.sh - nothing, again. I'm out of ideas how to add something to autorun in this device
test.sh
Code:
#!/bin/sh
mkdir /jffs/someTestDir
I'm not sure how to do this - there is no /etc/init.d or systemctl. I have tried some things like this and this. The problem - there is no scripts dir in /jffs, no Persistent JFFS2 partition section in my Administartion/System page, no such key as jffs2_scripts in nvram and if i do nvram set jffs2_scripts="1"; nvram commit; reboot - no scripts dir is created or something. I tried to create a cron job, but it not survives a reboot - cru l is empty after this. The wiki says about available scripts like services-start. Not sure where are they available - i have only those i have created. Tried to make services-start with cron job that starts test.sh - nothing, again. I'm out of ideas how to add something to autorun in this device