diff options
author | Marin Hannache <git@mareo.fr> | 2013-07-13 14:31:15 +0200 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-07-15 13:49:48 +0200 |
commit | c0af8c04333e499d2ed91dcb98b2dfe1aec1c7e3 (patch) | |
tree | dd91fb9d367e5e2ff16425b9e0b75d218e8a63a3 /src/include/ipxe/reboot.h | |
parent | 9b93b669d13611763470f190954cbb711448f749 (diff) | |
download | ipxe-c0af8c04333e499d2ed91dcb98b2dfe1aec1c7e3.tar.gz |
[cmdline] Add "poweroff" command
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Marin Hannache <git@mareo.fr>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/reboot.h')
-rw-r--r-- | src/include/ipxe/reboot.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/ipxe/reboot.h b/src/include/ipxe/reboot.h index 5d882d3dd..97e0d5fb6 100644 --- a/src/include/ipxe/reboot.h +++ b/src/include/ipxe/reboot.h @@ -55,4 +55,14 @@ FILE_LICENCE ( GPL2_OR_LATER ); */ void reboot ( int warm ); +/** + * Power off system + * + * @ret rc Return status code + * + * This function may fail, since not all systems support being powered + * off by software. + */ +int poweroff ( void ); + #endif /* _IPXE_REBOOT_H */ |