ia64/xen-unstable

changeset 5846:9a936ba5cde0

XenLinux restart/poweroff calls 'reboot' or 'poweroff'
as appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jul 25 20:32:11 2005 +0000 (2005-07-25)
parents 6feba419cead
children 34fe1d9f0ced
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 17:26:32 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c	Mon Jul 25 20:32:11 2005 +0000
     1.3 @@ -172,8 +172,8 @@ static int shutdown_process(void *__unus
     1.4  {
     1.5      static char *envp[] = { "HOME=/", "TERM=linux", 
     1.6                              "PATH=/sbin:/usr/sbin:/bin:/usr/bin", NULL };
     1.7 -    static char *restart_argv[]  = { "/sbin/shutdown", "-r", "now", NULL };
     1.8 -    static char *poweroff_argv[] = { "/sbin/halt",     "-p",        NULL };
     1.9 +    static char *restart_argv[]  = { "/sbin/reboot", NULL };
    1.10 +    static char *poweroff_argv[] = { "/sbin/poweroff", NULL };
    1.11  
    1.12      extern asmlinkage long sys_reboot(int magic1, int magic2,
    1.13                                        unsigned int cmd, void *arg);