initctl: Add SysV compat support for setenv

- Fix compat INIT_CMD_ defines so Finit clients can talk to SysV init
- Add setenv support, only for INIT_HALT={POWERDOWN,HALT} to runlevel 6

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-07-30 15:54:37 +02:00
1 parent 72a9832662
commit 4cf60b7491
3 files changed
+75 -16

No files matched your search

+5
View File
@@ -55,6 +55,11 @@
sigaction(sig, &sa, NULL); \
} while (0)
/*
* For old-style /dev/initctl shutdown we default to halt
*/
#define SHUT_DEFAULT SHUT_HALT
typedef enum {
SHUT_OFF,
SHUT_HALT,