Custom Checks
You may create customs checks for the check-engine utility. These checks should be placed in the /etc/config/checks directory, preferably in a separate directory to categorize them.
Make sure:
- The file is executable (
chmod +x /etc/config/checks/my-check.sh) - The file has a valid shebang (
#!/bin/sh, note that bash is not available by default) - The file returns exit code 0 for success and non-zero for failure
- The file does not require user input
- The file returns useful output to stdout and/or stderr
- The file is named descriptively
Check Engine will give an error if it is unable to run a check due to permissions or other issues. However, if a check is awaiting user input or otherwise hangs, Check Engine will also hang.