All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Do not redefine DEFAULT_NETWORK_{, DOWN_}SCRIPT
@ 2008-06-12 17:24 Ian Jackson
  2008-06-12 18:40 ` Anthony Liguori
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Jackson @ 2008-06-12 17:24 UTC (permalink / raw)
  To: qemu-devel

With this change it is possible to change the default network script
with a change to CPPFLAGS or a suitable config.h, for example
  -DDEFAULT_NETWORK_SCRIPT='"/path/to/some/script/of/mine/ifup"' \
  -DDEFAULT_NETWORK_DOWN_SCRIPT='"/path/to/some/script/of/mine/ifdown"'

My patch assumes that you'll want to override both defaults, or
neither.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>

---
 vl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/vl.c b/vl.c
index f1d92c1..229b536 100644
--- a/vl.c
+++ b/vl.c
@@ -131,8 +131,10 @@ int inet_aton(const char *cp, struct in_addr *ia);
 
 #include "exec-all.h"
 
+#ifndef DEFAULT_NETWORK_SCRIPT
 #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
 #define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
+#endif
 #ifdef __sun__
 #define SMBD_COMMAND "/usr/sfw/sbin/smbd"
 #else
-- 
1.4.4.4

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

end of thread, other threads:[~2008-06-13 11:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-12 17:24 [Qemu-devel] [PATCH] Do not redefine DEFAULT_NETWORK_{, DOWN_}SCRIPT Ian Jackson
2008-06-12 18:40 ` Anthony Liguori
2008-06-13  9:27   ` Ian Jackson
2008-06-13 11:24   ` Ian Jackson

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.