mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
sysctl fail due to the '.' in the interface name: Jan 10 00:02:26 paris /netbsd: xvif108.0: could not attach sysctl nodes Jan 10 00:02:57 paris /netbsd: sysctl_createv: sysctl_create(xvif108.0) returned 22 The kernel driver have recently been fixed and attached patch updates to the hotplug scripts accordingly. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
39 lines
805 B
Bash
39 lines
805 B
Bash
#!/bin/sh -e
|
|
|
|
# $NetBSD: vif-bridge-nbsd,v 1.1.1.1 2008/08/07 20:26:57 cegger Exp $
|
|
# Called by xenbackendd
|
|
# Usage: vif-bridge xsdir_backend_path state
|
|
|
|
DIR=$(dirname "$0")
|
|
. "${DIR}/hotplugpath.sh"
|
|
|
|
PATH=${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/bin:/usr/bin:/sbin:/usr/sbin
|
|
export PATH
|
|
|
|
xpath=$1
|
|
xstatus=$2
|
|
|
|
case $xstatus in
|
|
6)
|
|
# device removed
|
|
xenstore-rm $xpath
|
|
exit 0
|
|
;;
|
|
2)
|
|
xbridge=$(xenstore-read "$xpath/bridge")
|
|
xfid=$(xenstore-read "$xpath/frontend-id")
|
|
xhandle=$(xenstore-read "$xpath/handle")
|
|
iface=$(xenstore-read "$xpath/vifname")
|
|
echo ifconfig $iface up
|
|
ifconfig $iface up
|
|
brconfig $xbridge add $iface
|
|
echo brconfig $xbridge add $iface
|
|
xenstore-write $xpath/hotplug-status connected
|
|
echo xenstore-write $xpath/hotplug-status connected
|
|
exit 0
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|