[Pkg-xen-changes] r338 - trunk/xen-common/scripts

Bastian Blank waldi at costa.debian.org
Tue Oct 3 12:11:05 UTC 2006


Author: waldi
Date: Tue Oct  3 12:11:04 2006
New Revision: 338

Added:
   trunk/xen-common/scripts/qemu-ifup
Modified:
   trunk/xen-common/scripts/Makefile

Log:
* scripts/Makefile: Update.
* scripts/qemu-ifup: Add.


Modified: trunk/xen-common/scripts/Makefile
==============================================================================
--- trunk/xen-common/scripts/Makefile	(original)
+++ trunk/xen-common/scripts/Makefile	Tue Oct  3 12:11:04 2006
@@ -1,3 +1,6 @@
+ETC_SCRIPTS = \
+	qemu-ifup
+
 GLOBAL_SCRIPTS = \
 	cpuperf-perfcntr \
 	cpuperf-xen \
@@ -24,14 +27,18 @@
 
 WRAPPER = xen-utils-wrapper
 
+ETC_SCRIPTS_DIR = /etc/xen/scripts
 GLOBAL_SCRIPTS_DIR = /usr/sbin
 PRIVATE_SCRIPTS_DIR = /usr/lib/xen-common/bin
 
 install:
-	install -d $(DESTDIR)$(GLOBAL_SCRIPTS_DIR) $(DESTDIR)$(PRIVATE_SCRIPTS_DIR)
+	install -d $(DESTDIR)$(ETC_SCRIPTS_DIR)
+	install $(ETC_SCRIPTS) $(DESTDIR)$(ETC_SCRIPTS_DIR)
+	install -d $(DESTDIR)$(GLOBAL_SCRIPTS_DIR)
 	@for i in $(GLOBAL_SCRIPTS); do \
 	    echo ln -s $(PRIVATE_SCRIPTS_DIR)/$(WRAPPER) $(DESTDIR)$(GLOBAL_SCRIPTS_DIR)/$$i; \
 	    ln -s $(PRIVATE_SCRIPTS_DIR)/$(WRAPPER) $(DESTDIR)$(GLOBAL_SCRIPTS_DIR)/$$i || exit 1; \
 	done
+	install -d $(DESTDIR)$(PRIVATE_SCRIPTS_DIR)
 	install $(PRIVATE_SCRIPTS) $(DESTDIR)$(PRIVATE_SCRIPTS_DIR)
 

Added: trunk/xen-common/scripts/qemu-ifup
==============================================================================
--- (empty file)
+++ trunk/xen-common/scripts/qemu-ifup	Tue Oct  3 12:11:04 2006
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+echo -c 'config qemu network with xen bridge for '
+echo $*
+
+ifconfig $1 0.0.0.0 up
+brctl addif $2 $1



More information about the Pkg-xen-changes mailing list