projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fa3854
)
test: Allow setting gateway for a static ip address.
author
Gustavo Sverzut Barbieri
<barbieri@profusion.mobi>
Mon, 15 Nov 2010 09:30:00 +0000
(07:30 -0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 16 Nov 2010 13:45:22 +0000
(14:45 +0100)
test/set-ip-method
patch
|
blob
|
history
diff --git
a/test/set-ip-method
b/test/set-ip-method
index
0d08e4d
..
9f202f7
100755
(executable)
--- a/
test/set-ip-method
+++ b/
test/set-ip-method
@@
-25,7
+25,8
@@
if (len(sys.argv) > 3):
ipv4_configuration["Address"] = sys.argv[3]
if (len(sys.argv) > 4):
ipv4_configuration["Netmask"] = sys.argv[4]
-
+if (len(sys.argv) > 5):
+ ipv4_configuration["Gateway"] = sys.argv[5]
service.SetProperty("IPv4.Configuration", ipv4_configuration)
print "New IPv4.Configuration: ", ipv4_configuration