summaryrefslogtreecommitdiff
path: root/src/shared/bus-util.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-08-21 08:20:36 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commitfe9f813b914df4d0451f8e7b12eca0408db625bf (patch)
tree63a2281034efe71508dd12cdcaa5f70d3731c23a /src/shared/bus-util.c
parentcf380e653e9ff12805ef32041118fe3c1b9fbd55 (diff)
Prep v239: Add support for the new 'suspend-then-hibernate' method.
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r--src/shared/bus-util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c
index b33a7272d..c3be78769 100644
--- a/src/shared/bus-util.c
+++ b/src/shared/bus-util.c
@@ -1302,16 +1302,18 @@ int bus_connect_transport(BusTransport transport, const char *host, bool user, s
#if 0 /// elogind does not support a user bus
if (user)
r = sd_bus_default_user(&bus);
-#endif // 0
else {
if (sd_booted() <= 0) {
/* Print a friendly message when the local system is actually not running systemd as PID 1. */
- log_error("System has not been booted with elogind as init system (PID 1). Can't operate.");
+ log_error("System has not been booted with systemd as init system (PID 1). Can't operate.");
return -EHOSTDOWN;
}
+#endif // 0
r = sd_bus_default_system(&bus);
+#if 0 /// No closing bracket with elogind... Ain't we simple? ;-)
}
+#endif // 0
break;
case BUS_TRANSPORT_REMOTE: