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.
How to autostart a C application for OpenWrt?
189 Views Asked by TryToLearn At
0
There are 0 best solutions below
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in SHELL
- macOS - Most secure way of a GUI SUDO_ASKPASS
- When does Bash read heredocs?
- Why `set -o pipefail` gives different output even though the pipe is not failing
- Run multiple shell scripts in Dockerfile
- Alias does not take effect when I use Vim to execute external commands
- why variable substitution is so different?
- Error: fish: ${ is not a valid variable in fish
- Custom Bash functions & custom statements - Need some advice
- unexpected operator == in square brackets when trying to use gum lib
- Delete first three lines containing a certain word
- Keep the log for the last 14 days
- Iterate over items in one array and groups of items in second array
- Keep multi-version of a static-lib like what we do for shared-libs
- How to write function in bash for reuse shell commands inside using osascript?
- Why is it that when I pass certain directory names to `ls`, sometimes it does not list their contents?
Related Questions in OPENWRT
- Accept any Wi-Fi password on OpenWRT (hostap)
- Unknow build error with OpenWrt
- cannot boot-up openwrt for beagle bone black(BB-black)
- Run OpenWRT commands in C# using ssh client libraries
- OpenWRT make is failing because kernel is asking for config options interactively
- Difference between ps | grep safe and ps | grep safe\$
- rlm_eap error running freeradius in openwrt
- How do I connect Arduino nano with QinHeng Electronics HL-340 USB Serial Adaptor to OpenWrt?
- Lua FIFO / QUEUE file
- OpenWRT: Use logread to send remote logging data to syslog-ng client
- File Encryption/Decryption with AES using Linux
- How to change the openwrt Makefiles in order to generate only one image
- Query MACs in Wifi Access Point
- From which Makefile does the error come from
- writing a modbus program for a Open-WRT router using libmodbus C (rewrite Python app to C)
Related Questions in INIT.D
- Create kea runtime directory at startup in Yocto image
- Yocto init hangs on Banana Pi: How to debug?
- MySQL service not found
- What's the standard way to setup a debian package to be run as a service?
- Close starting service after opkg package install
- Monit / init.d for Elixir/Phoenix and Spinx/searchd on Ubuntu
- Failed to stop Apache Spark Master or Slave using Systemd
- How to convert systemv startup scripts to systemd services?
- Gradle still downloads dependencies already available in local repo
- how to autorun a shell script after boot - OpenWRT
- Why doesn't my process start at boot? (OpenWrt)
- How to autostart a C application for OpenWrt?
- Log output from service in /var/log/<service-name> (sysvinit)
- Authenticate a local Spring Boot service with Google Cloud
- Disable system logs for Spring Boot app running as Linux init.d service
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?