ia64/xen-unstable

changeset 5860:d63b100b327a

Fix restart/poweroff properly. From aq.
author kaf24@firebug.cl.cam.ac.uk
date Tue Jul 26 10:09:06 2005 +0000 (2005-07-26)
parents ecb17ef5a587
children 6c24d2b4f3ea 932fc8a1b38d
files linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c	Mon Jul 25 21:19:14 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c	Tue Jul 26 10:09:06 2005 +0000
     1.3 @@ -187,7 +187,7 @@ static int shutdown_process(void *__unus
     1.4      switch ( shutting_down )
     1.5      {
     1.6      case CMSG_SHUTDOWN_POWEROFF:
     1.7 -        if ( execve("/sbin/halt", poweroff_argv, envp) < 0 )
     1.8 +        if ( execve("/sbin/poweroff", poweroff_argv, envp) < 0 )
     1.9          {
    1.10              sys_reboot(LINUX_REBOOT_MAGIC1,
    1.11                         LINUX_REBOOT_MAGIC2,
    1.12 @@ -197,7 +197,7 @@ static int shutdown_process(void *__unus
    1.13          break;
    1.14  
    1.15      case CMSG_SHUTDOWN_REBOOT:
    1.16 -        if ( execve("/sbin/shutdown", restart_argv, envp) < 0 )
    1.17 +        if ( execve("/sbin/reboot", restart_argv, envp) < 0 )
    1.18          {
    1.19              sys_reboot(LINUX_REBOOT_MAGIC1,
    1.20                         LINUX_REBOOT_MAGIC2,