On Tue, 6 Mar 2007, Mockern wrote: > I need to shutdown Linux from user level application. Which is the best > way to do it? (I need it for embedded system)
Use sys_reboot() syscall with either LINUX_REBOOT_CMD_HALT or LINUX_REBOOT_CMD_POWER_OFF. Also this is probably offtopic here, please use kernelnewbies mailinglist instead. -- Jiri Kosina - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/