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

Unified Diff: image_to_live.sh

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 | « no previous file | lib/cros_build_lib.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: image_to_live.sh
diff --git a/image_to_live.sh b/image_to_live.sh
index 84072398b17ef901a774cedf4a0f95ac41d55ab5..c2aafc3c639ffa2c3b5126efe24ef62139bd3753 100755
--- a/image_to_live.sh
+++ b/image_to_live.sh
@@ -107,7 +107,7 @@ function get_hostname {
# Dedicated usb NIC? Perhaps this detection should be done in the target,
# which will get the return address in one way or another. Or maybe we should
# just open a ssh tunnel and use localhost.
- hostname=$(sudo ifconfig eth0 |
+ hostname=$(/sbin/ifconfig eth0 |
grep 'inet addr' |
cut -f2 -d':' |
cut -f1 -d' ')
« no previous file with comments | « no previous file | lib/cros_build_lib.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698