Newer
Older
barebox / arch / sandbox / board / poweroff.c
@Antony Pavlov Antony Pavlov on 25 Jan 2018 325 bytes sandbox: use 'poweroff' command for exit
#include <common.h>
#include <init.h>
#include <poweroff.h>
#include <mach/linux.h>

static void sandbox_poweroff(struct poweroff_handler *poweroff)
{
	linux_exit();
}

static int poweroff_register_feature(void)
{
	poweroff_handler_register_fn(sandbox_poweroff);

	return 0;
}
coredevice_initcall(poweroff_register_feature);