mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
hotplug: remove debug messages from NetBSD hotplug scripts
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>
This commit is contained in:
1 parent
888fa55351
commit
c811f6765b
3 files changed
-9
No files matched your search
@@ -64,14 +64,12 @@ case $xstatus in
|
||||
if [ "$status" = "free" ] && \
|
||||
vnconfig /dev/${disk}d $xparams >/dev/null; then
|
||||
device=/dev/${disk}d
|
||||
echo vnconfig /dev/${disk}d $xparams
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ x$device = x ] ; then
|
||||
error "no available vnd device"
|
||||
fi
|
||||
echo xenstore-write $xpath/vnd $device
|
||||
xenstore-write $xpath/vnd $device
|
||||
;;
|
||||
phy)
|
||||
@@ -79,9 +77,7 @@ case $xstatus in
|
||||
;;
|
||||
esac
|
||||
physical_device=$(stat -f '%r' "$device")
|
||||
echo xenstore-write $xpath/physical-device $physical_device
|
||||
xenstore-write $xpath/physical-device $physical_device
|
||||
echo xenstore-write $xpath/hotplug-status connected
|
||||
xenstore-write $xpath/hotplug-status connected
|
||||
exit 0
|
||||
;;
|
||||
|
||||
@@ -24,12 +24,9 @@ case $xstatus in
|
||||
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
|
||||
;;
|
||||
*)
|
||||
|
||||
@@ -24,10 +24,8 @@ case $xstatus in
|
||||
xfid=$(xenstore-read "$xpath/frontend-id")
|
||||
xhandle=$(xenstore-read "$xpath/handle")
|
||||
iface=$(xenstore-read "$xpath/vifname")
|
||||
echo ifconfig $iface $xip up
|
||||
ifconfig $iface $xip up
|
||||
xenstore-write $xpath/hotplug-status connected
|
||||
echo xenstore-write $xpath/hotplug-status connected
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
|
||||