diff options
author | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-09-02 14:15:49 +0000 |
---|---|---|
committer | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-09-02 14:15:49 +0000 |
commit | 074210e7201885f802a6f745345eda90072be2bd (patch) | |
tree | 013cd31647fdc7e6908e2b86c423fdfd58b26476 /tools/examples | |
parent | fdda579ede6de2a4f182fc0553c3758c3365cfd4 (diff) | |
download | xen-074210e7201885f802a6f745345eda90072be2bd.tar.gz xen-074210e7201885f802a6f745345eda90072be2bd.tar.bz2 xen-074210e7201885f802a6f745345eda90072be2bd.zip |
Restore configurability of vif bring up script and passing arguments to the script.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Diffstat (limited to 'tools/examples')
-rwxr-xr-x | tools/examples/xen-backend.agent | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tools/examples/xen-backend.agent b/tools/examples/xen-backend.agent index a708aad8f3..0058bd2842 100755 --- a/tools/examples/xen-backend.agent +++ b/tools/examples/xen-backend.agent @@ -1,21 +1,25 @@ #! /bin/sh -#DEVPATH=/devices/xen-backend/vif-1-0 #ACTION=add +#DEVPATH=/devices/xen-backend/vif-1-0 +#PHYSDEVDRIVER=vif +#XENBUS_TYPE=vif 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 + ;; + remove) + ;; + online) + case "$PHYSDEVDRIVER" in + vif) + [ -n "$script" ] && $script up ;; esac ;; - remove) + offline) ;; esac |