summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate/dumpstate.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2013-02-22 11:27:58 -0800
committerDmitry Shmidt <dimitrysh@google.com>2013-02-22 11:27:58 -0800
commit5b8176471c0704651ceb22608c74d03877513ec0 (patch)
treebf5adcc2ec37df7ed98a45c819c1e1a1b060112c /cmds/dumpstate/dumpstate.c
parent9a867a8798fa6ea21f6341db31e38ea64fde6c83 (diff)
downloadframeworks_native-5b8176471c0704651ceb22608c74d03877513ec0.zip
frameworks_native-5b8176471c0704651ceb22608c74d03877513ec0.tar.gz
frameworks_native-5b8176471c0704651ceb22608c74d03877513ec0.tar.bz2
Remove obsolte 'su' from 'ping' call (to work on user build)
Change-Id: I2d391bbd39fc591eef33b9c9e4b4cdbda29e41e7 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'cmds/dumpstate/dumpstate.c')
-rw-r--r--cmds/dumpstate/dumpstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index c8eafb8..1b8f755 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -196,13 +196,13 @@ static void dumpstate() {
property_get("dhcp.wlan0.gateway", network, "");
if (network[0])
- run_command("PING GATEWAY", 10, SU_PATH, "root", "ping", "-c", "3", "-i", ".5", network, NULL);
+ run_command("PING GATEWAY", 10, "ping", "-c", "3", "-i", ".5", network, NULL);
property_get("dhcp.wlan0.dns1", network, "");
if (network[0])
- run_command("PING DNS1", 10, SU_PATH, "root", "ping", "-c", "3", "-i", ".5", network, NULL);
+ run_command("PING DNS1", 10, "ping", "-c", "3", "-i", ".5", network, NULL);
property_get("dhcp.wlan0.dns2", network, "");
if (network[0])
- run_command("PING DNS2", 10, SU_PATH, "root", "ping", "-c", "3", "-i", ".5", network, NULL);
+ run_command("PING DNS2", 10, "ping", "-c", "3", "-i", ".5", network, NULL);
#ifdef FWDUMP_bcmdhd
run_command("DUMP WIFI STATUS", 20,
SU_PATH, "root", "dhdutil", "-i", "wlan0", "dump", NULL);