mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Remove unecessary debug messages from NetBSD hotplug scripts, left error messages only. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
35 lines
651 B
Bash
35 lines
651 B
Bash
#!/bin/sh -e
|
|
|
|
# $NetBSD: vif-ip-nbsd,v 1.1.1.1 2008/08/07 20:26:57 cegger Exp $
|
|
# Called by xenbackendd
|
|
# Usage: vif-ip 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)
|
|
xip=$(xenstore-read "$xpath/ip")
|
|
xfid=$(xenstore-read "$xpath/frontend-id")
|
|
xhandle=$(xenstore-read "$xpath/handle")
|
|
iface=$(xenstore-read "$xpath/vifname")
|
|
ifconfig $iface $xip up
|
|
xenstore-write $xpath/hotplug-status connected
|
|
exit 0
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|