f200b63186
"many new features". One looks promising: - a new easy-to-use CPU scheduler which includes weights, caps, and automatic SMP load-balancing; pkgsrc changes: - remove patches against unused files - add a netbsd-specific example with verbose comments - add a vif script for ip-routing based setups
33 lines
645 B
Bash
Executable file
33 lines
645 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
# $NetBSD: vif-ip-nbsd,v 1.1 2006/10/19 22:57:13 bouyer Exp $
|
|
# Called by xenbackendd
|
|
# Usage: vif-ip xsdir_backend_path state
|
|
|
|
PATH=/bin:/usr/bin:@PREFIX@/bin:/sbin:/usr/sbin:@PREFIX@/sbin
|
|
export PATH
|
|
|
|
xpath=$1
|
|
xstatus=$2
|
|
|
|
case $xstatus in
|
|
6)
|
|
# device removed
|
|
xenstore-rm $xpath
|
|
exit 0
|
|
;;
|
|
2)
|
|
xip=$(xenstore-read "$xpath/ip")
|
|
xfid=$(xenstore-read "$xpath/frontend-id")
|
|
xhandle=$(xenstore-read "$xpath/handle")
|
|
iface=xvif$xfid.$xhandle
|
|
echo ifconfig $iface $xip up
|
|
ifconfig $iface $xip up
|
|
xenstore-write $xpath/hotplug-status connected
|
|
echo xenstore-write $xpath/hotplug-status connected
|
|
exit 0
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|