chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
initctl: check for kexec_loaded when reboot is requested through initctl
[elogind.git]
/
src
/
systemctl.c
diff --git
a/src/systemctl.c
b/src/systemctl.c
index 604400d8fb7b9d0aa14c79297a30faa4b29e6cfd..0a35d8e021a59d3ab009049b2c4998fb40132c9f 100644
(file)
--- a/
src/systemctl.c
+++ b/
src/systemctl.c
@@
-4427,18
+4427,6
@@
static int parse_time_spec(const char *t, usec_t *_u) {
return 0;
}
return 0;
}
-static bool kexec_loaded(void) {
- bool loaded = false;
- char *s;
-
- if (read_one_line_file("/sys/kernel/kexec_loaded", &s) >= 0) {
- if (s[0] == '1')
- loaded = true;
- free(s);
- }
- return loaded;
-}
-
static int shutdown_parse_argv(int argc, char *argv[]) {
enum {
static int shutdown_parse_argv(int argc, char *argv[]) {
enum {