Only kill logd on fugu.
Change-Id: I966b860f43f62deb8b713d93bff1d629e51c11ef
diff --git a/tools/buildbot-setup-device.sh b/tools/buildbot-setup-device.sh
index 608d3f2..ad2c59c 100755
--- a/tools/buildbot-setup-device.sh
+++ b/tools/buildbot-setup-device.sh
@@ -52,10 +52,14 @@
adb shell setprop ctl.stop llkd-0
adb shell setprop ctl.stop llkd-1
-# Kill logd first, so that when we set the adb buffer size later in this file,
-# it is brought up again.
-msginfo "Killing logd, seen leaking on fugu/N"
-adb shell pkill -9 -U logd logd && msginfo "...logd killed"
+product_name=$(adb shell getprop ro.build.product)
+
+if [ "x$product_name" = xfugu ]; then
+ # Kill logd first, so that when we set the adb buffer size later in this file,
+ # it is brought up again.
+ msginfo "Killing logd, seen leaking on fugu/N"
+ adb shell pkill -9 -U logd logd && msginfo "...logd killed"
+fi
# Update date on device if the difference with host is more than one hour.
if [ $abs_time_difference_in_seconds -gt $seconds_per_hour ]; then
@@ -83,8 +87,6 @@
fi
# Fugu only handles buffer size up to 16MB.
-product_name=$(adb shell getprop ro.build.product)
-
if [ "x$product_name" = xfugu ]; then
buffer_size=16MB
else