ia64/xen-unstable

changeset 6590:af78c9d526e0

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@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Sep 01 10:45:50 2005 +0000 (2005-09-01)
parents 6bb68b092976
children 030a56a24fa6 edd1616cf8cb
files Makefile tools/examples/Makefile tools/examples/xen-backend.agent
line diff
     1.1 --- a/Makefile	Thu Sep 01 10:38:57 2005 +0000
     1.2 +++ b/Makefile	Thu Sep 01 10:45:50 2005 +0000
     1.3 @@ -178,6 +178,8 @@ uninstall:
     1.4  	rm -rf $(D)/usr/share/man/man1/xen*
     1.5  	rm -rf $(D)/usr/share/man/man8/xen*
     1.6  	rm -rf $(D)/usr/lib/xen
     1.7 +	rm -rf $(D)/etc/hotplug.d/xen-backend
     1.8 +	rm -rf $(D)/etc/hotplug/xen-backend.agent
     1.9  
    1.10  # Legacy targets for compatibility
    1.11  linux24:
     2.1 --- a/tools/examples/Makefile	Thu Sep 01 10:38:57 2005 +0000
     2.2 +++ b/tools/examples/Makefile	Thu Sep 01 10:45:50 2005 +0000
     2.3 @@ -27,8 +27,8 @@ XEN_SCRIPTS += block-enbd
     2.4  XEN_BOOT_DIR = /usr/lib/xen/boot
     2.5  XEN_BOOT = mem-map.sxp
     2.6  
     2.7 -XEN_HOTPLUG_DIR = /etc/hotplug.d/xen-backend
     2.8 -XEN_HOTPLUG_SCRIPTS = backend.hotplug
     2.9 +XEN_HOTPLUG_DIR = /etc/hotplug
    2.10 +XEN_HOTPLUG_SCRIPTS = xen-backend.agent
    2.11  
    2.12  all: 
    2.13  build:
     3.1 --- a/tools/examples/backend.hotplug	Thu Sep 01 10:38:57 2005 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,21 +0,0 @@
     3.4 -#! /bin/sh
     3.5 -
     3.6 -#DEVPATH=/devices/xen-backend/vif-1-0
     3.7 -#ACTION=add
     3.8 -
     3.9 -PATH=/etc/xen/scripts:$PATH
    3.10 -
    3.11 -DEV=$(basename "$DEVPATH")
    3.12 -case "$ACTION" in
    3.13 -  add)
    3.14 -    case "$DEV" in
    3.15 -      vif-*)
    3.16 -        vif=$(echo "$DEV" | sed 's/-\([0-9]*\)-\([0-9]*\)/\1.\2/')
    3.17 -        vif-bridge up domain=unknown vif="$vif" mac=fe:ff:ff:ff:ff:ff bridge=xen-br0 >/dev/null 2>&1
    3.18 -        ;;
    3.19 -    esac
    3.20 -    ;;
    3.21 -  remove)
    3.22 -    ;;
    3.23 -esac
    3.24 -
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/tools/examples/xen-backend.agent	Thu Sep 01 10:45:50 2005 +0000
     4.3 @@ -0,0 +1,21 @@
     4.4 +#! /bin/sh
     4.5 +
     4.6 +#DEVPATH=/devices/xen-backend/vif-1-0
     4.7 +#ACTION=add
     4.8 +
     4.9 +PATH=/etc/xen/scripts:$PATH
    4.10 +
    4.11 +DEV=$(basename "$DEVPATH")
    4.12 +case "$ACTION" in
    4.13 +  add)
    4.14 +    case "$DEV" in
    4.15 +      vif-*)
    4.16 +        vif=$(echo "$DEV" | sed 's/-\([0-9]*\)-\([0-9]*\)/\1.\2/')
    4.17 +        vif-bridge up domain=unknown vif="$vif" mac=fe:ff:ff:ff:ff:ff bridge=xen-br0 >/dev/null 2>&1
    4.18 +        ;;
    4.19 +    esac
    4.20 +    ;;
    4.21 +  remove)
    4.22 +    ;;
    4.23 +esac
    4.24 +