[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix network setup through hotplug on SUSE.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID af78c9d526e0b3502629fb0ef09064920157c0c5 # Parent 6bb68b0929765534666d822fb7e58889670ec08c Fix network setup through hotplug on SUSE. Move the hotplug script from /etc/hotplug.d/xen-backend/backend.hotplug to /etc/hotplug/xen-backend.agent, which seems to be a more common place for the script. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r 6bb68b092976 -r af78c9d526e0 Makefile --- a/Makefile Thu Sep 1 10:38:57 2005 +++ b/Makefile Thu Sep 1 10:45:50 2005 @@ -178,6 +178,8 @@ rm -rf $(D)/usr/share/man/man1/xen* rm -rf $(D)/usr/share/man/man8/xen* rm -rf $(D)/usr/lib/xen + rm -rf $(D)/etc/hotplug.d/xen-backend + rm -rf $(D)/etc/hotplug/xen-backend.agent # Legacy targets for compatibility linux24: diff -r 6bb68b092976 -r af78c9d526e0 tools/examples/Makefile --- a/tools/examples/Makefile Thu Sep 1 10:38:57 2005 +++ b/tools/examples/Makefile Thu Sep 1 10:45:50 2005 @@ -27,8 +27,8 @@ XEN_BOOT_DIR = /usr/lib/xen/boot XEN_BOOT = mem-map.sxp -XEN_HOTPLUG_DIR = /etc/hotplug.d/xen-backend -XEN_HOTPLUG_SCRIPTS = backend.hotplug +XEN_HOTPLUG_DIR = /etc/hotplug +XEN_HOTPLUG_SCRIPTS = xen-backend.agent all: build: diff -r 6bb68b092976 -r af78c9d526e0 tools/examples/xen-backend.agent --- /dev/null Thu Sep 1 10:38:57 2005 +++ b/tools/examples/xen-backend.agent Thu Sep 1 10:45:50 2005 @@ -0,0 +1,21 @@ +#! /bin/sh + +#DEVPATH=/devices/xen-backend/vif-1-0 +#ACTION=add + +PATH=/etc/xen/scripts:$PATH + +DEV=$(basename "$DEVPATH") +case "$ACTION" in + add) + case "$DEV" in + vif-*) + vif=$(echo "$DEV" | sed 's/-\([0-9]*\)-\([0-9]*\)/\1.\2/') + vif-bridge up domain=unknown vif="$vif" mac=fe:ff:ff:ff:ff:ff bridge=xen-br0 >/dev/null 2>&1 + ;; + esac + ;; + remove) + ;; +esac + diff -r 6bb68b092976 -r af78c9d526e0 tools/examples/backend.hotplug --- a/tools/examples/backend.hotplug Thu Sep 1 10:38:57 2005 +++ /dev/null Thu Sep 1 10:45:50 2005 @@ -1,21 +0,0 @@ -#! /bin/sh - -#DEVPATH=/devices/xen-backend/vif-1-0 -#ACTION=add - -PATH=/etc/xen/scripts:$PATH - -DEV=$(basename "$DEVPATH") -case "$ACTION" in - add) - case "$DEV" in - vif-*) - vif=$(echo "$DEV" | sed 's/-\([0-9]*\)-\([0-9]*\)/\1.\2/') - vif-bridge up domain=unknown vif="$vif" mac=fe:ff:ff:ff:ff:ff bridge=xen-br0 >/dev/null 2>&1 - ;; - esac - ;; - remove) - ;; -esac - _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |