All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Make xencommons a bit more idiomatic
@ 2011-08-20  0:49 Jeremy Fitzhardinge
  2011-08-20  8:21 ` Olaf Hering
  2011-08-30 16:41 ` Ian Jackson
  0 siblings, 2 replies; 5+ messages in thread
From: Jeremy Fitzhardinge @ 2011-08-20  0:49 UTC (permalink / raw)
  To: Ian Jackson; +Cc: xen-devel@lists.xensource.com

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>


diff -r 8d6edc3d26d2 -r cfb49fe940fd tools/hotplug/Linux/init.d/xencommons
--- a/tools/hotplug/Linux/init.d/xencommons	Sat Aug 13 10:14:58 2011 +0100
+++ b/tools/hotplug/Linux/init.d/xencommons	Tue Aug 16 16:56:16 2011 -0700
@@ -29,11 +29,9 @@
 XENCONSOLED_PIDFILE=/var/run/xenconsoled.pid
 shopt -s extglob
 
-if test "x$1" = xstart && \
-     test -d /proc/xen && \
-   ! test -f /proc/xen/capabilities && \
-   ! grep '^xenfs ' /proc/mounts >/dev/null;
-then
+if [ "x$1" = xstart -a -d /proc/xen -a \
+    ! -f /proc/xen/capabilities ] && \
+    ! grep -qw '^xenfs' /proc/mounts; then
 	mount -t xenfs xenfs /proc/xen
 fi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-30 17:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-20  0:49 [PATCH 1/2] Make xencommons a bit more idiomatic Jeremy Fitzhardinge
2011-08-20  8:21 ` Olaf Hering
2011-08-21  0:33   ` Jeremy Fitzhardinge
2011-08-30 16:41 ` Ian Jackson
2011-08-30 17:47   ` Jeremy Fitzhardinge

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.