ia64/xen-unstable

changeset 4108:4d7f2d346576

bitkeeper revision 1.1159.270.2 (42330a929cE0pKehTkalVAgu8SLwKQ)

[PATCH] non-xen-init-exit.patch

Name: non-xen-init-exit.patch
Description: exit if not running on a xen dom0 kernel.
If /proc/xen/privcmd doesn't exist, then exit successfully. This allows
for dual-boot setups, and installing xen before rebooting into a real
xen kernel.
Signed-off-by: Adam Heath <doogie@brainfood.com>
author doogie@brainfood.com[kaf24]
date Sat Mar 12 15:28:18 2005 +0000 (2005-03-12)
parents fcd17066e110
children 3ee85723a341
files BitKeeper/etc/logging_ok tools/examples/init.d/xend tools/examples/init.d/xendomains
line diff
     1.1 --- a/BitKeeper/etc/logging_ok	Sat Mar 12 15:19:18 2005 +0000
     1.2 +++ b/BitKeeper/etc/logging_ok	Sat Mar 12 15:28:18 2005 +0000
     1.3 @@ -16,6 +16,7 @@ cl349@freefall.cl.cam.ac.uk
     1.4  cl349@labyrinth.cl.cam.ac.uk
     1.5  cwc22@centipede.cl.cam.ac.uk
     1.6  djm@kirby.fc.hp.com
     1.7 +doogie@brainfood.com
     1.8  gm281@boulderdash.cl.cam.ac.uk
     1.9  gm281@tetrapod.cl.cam.ac.uk
    1.10  iap10@freefall.cl.cam.ac.uk
     2.1 --- a/tools/examples/init.d/xend	Sat Mar 12 15:19:18 2005 +0000
     2.2 +++ b/tools/examples/init.d/xend	Sat Mar 12 15:28:18 2005 +0000
     2.3 @@ -7,6 +7,10 @@
     2.4  # chkconfig: 2345 98 01
     2.5  # description: Starts and stops the Xen control daemon.
     2.6  
     2.7 +if ! [ -e /proc/xen/privcmd ]; then
     2.8 +	exit 0
     2.9 +fi
    2.10 +
    2.11  # Wait for Xend / Xfrd to be up
    2.12  function await_daemons_up
    2.13  {
     3.1 --- a/tools/examples/init.d/xendomains	Sat Mar 12 15:19:18 2005 +0000
     3.2 +++ b/tools/examples/init.d/xendomains	Sat Mar 12 15:28:18 2005 +0000
     3.3 @@ -15,6 +15,10 @@
     3.4  # <http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/>
     3.5  #
     3.6  
     3.7 +if ! [ -e /proc/xen/privcmd ]; then
     3.8 +	exit 0
     3.9 +fi
    3.10 +
    3.11  RETVAL=0
    3.12  
    3.13  INITD=/etc/init.d