I'm trying to run a script at startup without luck
I've put it in the /etc/init.d/ directory, then changed attribute using chmod 755
According to Kamikaze documentation, next step should be to enable it in this way :
/etc/init.d/filename enable
This should create a script file into /etc/rc.d/ but unfortunately I've got this error :
root@OpenWrt:/# chmod 755 /etc/init.d/filename
root@OpenWrt:/# /etc/init.d/filename
/bin/sh: can't open /etc/rc.common
Is there any particularity using Gargoyle to create init script ?
Thank you.
The init scripts in Gargoyle have exactly the same structure as in OpenWrt. I suspect the problem is something within your script -- can you post the script itself?
If what you want to do is simple you can just edit the /etc/init.d/done script, which runs right after everything is initialized. Edit the start() function in that script and add on whatever you want to do.