commit | 7fc183701fdfb8f49dff6c89f6ef6613501f2d48 | [log] [tgz] |
---|---|---|
author | tom <tom@onlab.us> | Thu Sep 25 09:50:04 2014 -0700 |
committer | tom <tom@onlab.us> | Thu Sep 25 09:50:04 2014 -0700 |
tree | f2d18ebb9ccdc924b232908df69cc238171d60b8 | |
parent | aa1e2c3b5718c92cdddf82535760e0fd274c47f5 [diff] |
Fixed onos-patch-vm script.
diff --git a/tools/test/bin/onos-patch-vm b/tools/test/bin/onos-patch-vm index 60252c0..f80f349 100755 --- a/tools/test/bin/onos-patch-vm +++ b/tools/test/bin/onos-patch-vm
@@ -15,6 +15,8 @@ ssh $remote " sudo perl -pi.bak -e \"s/127.0.1.1.*/127.0.1.1 $name/g\" /etc/hosts - sudo echo $name /etc/hostname + sudo perl -pi.bak -e \"s/.*/$name/g\" /etc/hostname sudo hostname $name -" \ No newline at end of file +" 2>/dev/null + +echo "$address: $(ssh $remote hostname)"