# HG changeset patch # User kaf24@firebug.cl.cam.ac.uk # Date 1122372546 0 # Node ID d63b100b327ab8354bc9a71c38dbca436c64c0a5 # Parent ecb17ef5a587a806f7f4f017c243f963ad962868 Fix restart/poweroff properly. From aq. diff -r ecb17ef5a587 -r d63b100b327a linux-2.6-xen-sparse/arch/xen/kernel/reboot.c --- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Mon Jul 25 21:19:14 2005 +0000 +++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Tue Jul 26 10:09:06 2005 +0000 @@ -187,7 +187,7 @@ static int shutdown_process(void *__unus switch ( shutting_down ) { case CMSG_SHUTDOWN_POWEROFF: - if ( execve("/sbin/halt", poweroff_argv, envp) < 0 ) + if ( execve("/sbin/poweroff", poweroff_argv, envp) < 0 ) { sys_reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, @@ -197,7 +197,7 @@ static int shutdown_process(void *__unus break; case CMSG_SHUTDOWN_REBOOT: - if ( execve("/sbin/shutdown", restart_argv, envp) < 0 ) + if ( execve("/sbin/reboot", restart_argv, envp) < 0 ) { sys_reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2,