Add support for sys/pwr/fail and sys/key/ctrlaltdel conditions

This patch drops the default signal handlers for SIGPWR and SIGINT with
optional tasks in /etc/finit.conf, triggered by two new conditions:
sys/pwr/fail and sys/key/ctrlaltdel, respectively.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-05-18 08:58:11 +02:00
parent e706300b6d
commit b79245ddb3
4 changed files with 41 additions and 9 deletions
+2
View File
@@ -115,6 +115,8 @@ Built-in conditions:
- `net/<IFNAME>/up`
- `net/<IFNAME>/running`
- `sys/pwr/ac`
- `sys/pwr/fail`
- `sys/key/ctrlaltdel`
- `usr/foo`
**Note:** `up` means administratively up, the interface flag `IFF_UP`.