diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-05-04 01:02:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-05-04 01:02:32 +0200 |
commit | 59ddae9f9c0992fe193fa371a5d114227b35785c (patch) | |
tree | af7493ef392bee16336fd3d2c9bebac897151c44 | |
parent | 6fc08fc789cfccacc7741ba8feab849bc4f3c414 (diff) |
systemctl: fix typo
as Sergey Ptashnick pointed out we should write "poweroff" once instead
of "reboot" twice.
-rw-r--r-- | src/systemctl/systemctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index d80eb94af1..c08d80912a 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -5224,8 +5224,8 @@ static int systemctl_main(DBusConnection *bus, int argc, char *argv[], DBusError } if (((!streq(verbs[i].verb, "reboot") && - !streq(verbs[i].verb, "halt") && - !streq(verbs[i].verb, "reboot")) || arg_force <= 0) && !bus) { + !streq(verbs[i].verb, "halt") && + !streq(verbs[i].verb, "poweroff")) || arg_force <= 0) && !bus) { log_error("Failed to get D-Bus connection: %s", dbus_error_is_set(error) ? error->message : "No connection to service manager."); return -EIO; |