# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# 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
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Tue Jul 26 10:09:06 2005
@@ -187,7 +187,7 @@
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 @@
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,
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|