Reputation: 29
I've read the following documentation (https://oldwiki.archive.openwrt.org/doc/techref/initscripts). My scope is to start a script when my OpenWrt device is rebooted. Anyway, I can't understand some things: in this guide, I can see that in the /etc/init.d folder, there are many scripts, in which there are the command start, stop, enable and so on. Instead I have a compiled C program, so when I put my program in the /etc/init.d folder, I can't write the command start(), stop() etc. to this program (not even before compiling it, because for example the directive #!/bin/sh is not recognized). So, how can I do to start automatically my compiled C program when I reboot my OpenWrt device? This program execute some generic operations, and I need that this operations are executed each time that the device is started.
Upvotes: 0
Views: 219