mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-19 13:08:42 +07:00
reboot: handle -p switch properly
https://bugzilla.redhat.com/show_bug.cgi?id=618678
This commit is contained in:
parent
6319292f15
commit
a042efad57
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user