--- old/usr/src/cmd/xvm/ipagent/ipagent.ksh Thu May 14 14:22:12 2009
+++ new/usr/src/cmd/xvm/ipagent/ipagent.ksh Thu May 14 14:22:10 2009
@@ -38,7 +38,7 @@
#
link_to_addr()
{
- tmp=`netstat -I $1 -in | awk '{print $4}' | grep -v Address`;
+ tmp=`netstat -I $1 -in -f inet | awk '{print $4}' | grep -v Address`;
if [ -z "$tmp" ] || [ "$tmp" = "0.0.0.0" ];
then
addr="(none)";
--- old/usr/src/cmd/xvm/ipagent/ipagent.xml Thu May 14 14:22:14 2009
+++ new/usr/src/cmd/xvm/ipagent/ipagent.xml Thu May 14 14:22:13 2009
@@ -36,6 +36,14 @@
+
+
+
+
/dev/null`
+ echo "$domcaps" | grep "control_d" > /dev/null
+ if [ $? = 0 ]; then
+ disable_self
+ fi
+}
+
case $1 in
'start')
- #
- # This service should only be enabled in a PV domU.
- #
- is_dom0
- if [ $? -eq 0 ] || [ `uname -i` != "i86xpv" ]; then
- echo "This service will only run in a PV xVM domU."
- svcadm disable -t svc:/system/xvm/ipagent:default
- exit $SMF_EXIT_OK
- fi
+ check_is_domu
/usr/lib/xen/bin/ipagent $interval &