diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-02-06 07:28:54 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:23:13 +0100 |
commit | 14dbe3476e6a5e03d928dc35f48577efea6baf57 (patch) | |
tree | 3f0ad9de10e0ba6f4a68d1ed732b466f01d0eccc /src/basic/util.c | |
parent | 5b3e932f4e40d2c5523757242e00e4f4e6ae89cd (diff) |
Add poweroff, suspend etc. loginctl commands
* src/login/loginctl.c: Add poweroff, reboot, suspend, hibernate, and
hybrid-sleep commands. Normally these are handled by systemctl but
since elogind is targeted at the no-systemd use case, we incorporate
them here.
Diffstat (limited to 'src/basic/util.c')
-rw-r--r-- | src/basic/util.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/basic/util.c b/src/basic/util.c index 38de72966..fcea9cead 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -2568,8 +2568,6 @@ int files_same(const char *filea, const char *fileb) { a.st_ino == b.st_ino; } -/// UNNEEDED by elogind -#if 0 int running_in_chroot(void) { int ret; @@ -2579,7 +2577,6 @@ int running_in_chroot(void) { return ret == 0; } -#endif // 0 static char *ascii_ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigned percent) { size_t x; |