hotplug: remove debug messages from NetBSD hotplug scripts
authorRoger Pau Monne <roger.pau@entel.upc.edu>
Thu, 15 Dec 2011 17:55:46 +0000 (18:55 +0100)
committerRoger Pau Monne <roger.pau@entel.upc.edu>
Thu, 15 Dec 2011 17:55:46 +0000 (18:55 +0100)
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>
tools/hotplug/NetBSD/block
tools/hotplug/NetBSD/vif-bridge
tools/hotplug/NetBSD/vif-ip

index d853e115847f70f06c67e4219fff1124cb2116ee..cf5ff3a2f9974427e66951030280f534a52069f8 100644 (file)
@@ -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
        ;;
index 16c4080bd66f2d3c89a1b58a9777dfee372223d3..64162a8809498e7b1a7b627bdeb02796c1ebeb2c 100644 (file)
@@ -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
        ;;
 *)
index 11c7373003a9b3d3e43c09f27c7db67fd92cebf9..583e2773180245ec285cc0bd24a8b9cc79c102cd 100644 (file)
@@ -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
        ;;
 *)