head	1.2;
access;
symbols
	pkgsrc-2013Q2:1.2.0.26
	pkgsrc-2013Q2-base:1.2
	pkgsrc-2012Q4:1.2.0.24
	pkgsrc-2012Q4-base:1.2
	pkgsrc-2011Q4:1.2.0.22
	pkgsrc-2011Q4-base:1.2
	pkgsrc-2011Q2:1.2.0.20
	pkgsrc-2011Q2-base:1.2
	pkgsrc-2009Q4:1.2.0.18
	pkgsrc-2009Q4-base:1.2
	pkgsrc-2008Q4:1.2.0.16
	pkgsrc-2008Q4-base:1.2
	pkgsrc-2008Q3:1.2.0.14
	pkgsrc-2008Q3-base:1.2
	cube-native-xorg:1.2.0.12
	cube-native-xorg-base:1.2
	pkgsrc-2008Q2:1.2.0.10
	pkgsrc-2008Q2-base:1.2
	pkgsrc-2008Q1:1.2.0.8
	pkgsrc-2008Q1-base:1.2
	pkgsrc-2007Q4:1.2.0.6
	pkgsrc-2007Q4-base:1.2
	pkgsrc-2007Q3:1.2.0.4
	pkgsrc-2007Q3-base:1.2
	pkgsrc-2007Q2:1.2.0.2
	pkgsrc-2007Q2-base:1.2
	pkgsrc-2007Q1:1.1.0.4
	pkgsrc-2007Q1-base:1.1
	pkgsrc-2006Q4:1.1.0.2
	pkgsrc-2006Q4-base:1.1;
locks; strict;
comment	@# @;


1.2
date	2007.06.14.19.44.47;	author bouyer;	state dead;
branches;
next	1.1;

1.1
date	2006.10.19.22.57.13;	author bouyer;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Renamed xen*30 to xen*3
@
text
@#!/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
@


1.1
log
@Update to 3.0.3. I don't have a comprehensive list of changes, only
"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
@
text
@d3 1
a3 1
# $NetBSD: vif-bridge-nbsd,v 1.1.1.1 2006/07/02 16:49:31 bouyer Exp $
@

