Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: lib/cros_build_lib.py

Issue 6538067: scripts: use /sbin/ifconfig where appropriate (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « image_to_live.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/cros_build_lib.py
diff --git a/lib/cros_build_lib.py b/lib/cros_build_lib.py
index 138bfa7db396112c56b4f1a8ad4980e459493bdb..d7da384e09b48f605246b027fa6eaa4767dbdbd0 100644
--- a/lib/cros_build_lib.py
+++ b/lib/cros_build_lib.py
@@ -256,7 +256,7 @@ def GetIPAddress(device='eth0'):
this method gives you a generic way to get the address so you are reachable
either via a VM or remote machine on the same network.
"""
- ifconfig_output = RunCommand(['sudo', 'ifconfig', device],
+ ifconfig_output = RunCommand(['/sbin/ifconfig', device],
redirect_stdout=True, print_cmd=False)
match = re.search('.*inet addr:(\d+\.\d+\.\d+\.\d+).*', ifconfig_output)
if match:
« no previous file with comments | « image_to_live.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698