# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 9a936ba5cde0f2b33226e23c8c735f1b25924494
# Parent 6feba419cead1e49909c32dc111e2c8dedfac32e
XenLinux restart/poweroff calls 'reboot' or 'poweroff'
as appropriate.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r 6feba419cead -r 9a936ba5cde0
linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Mon Jul 25 17:26:32 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Mon Jul 25 20:32:11 2005
@@ -172,8 +172,8 @@
{
static char *envp[] = { "HOME=/", "TERM=linux",
"PATH=/sbin:/usr/sbin:/bin:/usr/bin", NULL };
- static char *restart_argv[] = { "/sbin/shutdown", "-r", "now", NULL };
- static char *poweroff_argv[] = { "/sbin/halt", "-p", NULL };
+ static char *restart_argv[] = { "/sbin/reboot", NULL };
+ static char *poweroff_argv[] = { "/sbin/poweroff", NULL };
extern asmlinkage long sys_reboot(int magic1, int magic2,
unsigned int cmd, void *arg);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|