Skip to content

Commit

Permalink
reboot: handle -p switch properly
Browse files Browse the repository at this point in the history
  • Loading branch information
michich authored and poettering committed Aug 5, 2010
1 parent 6319292 commit a042efa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systemctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3933,7 +3933,8 @@ static int halt_parse_argv(int argc, char *argv[]) {
break;

case 'p':
arg_action = ACTION_POWEROFF;
if (arg_action != ACTION_REBOOT)
arg_action = ACTION_POWEROFF;
break;

case ARG_REBOOT:
Expand Down

0 comments on commit a042efa

Please sign in to comment.