diff options
author | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2010-11-15 07:30:00 -0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-11-16 14:45:22 +0100 |
commit | 94cea803b00157a8546e02bd39efae1d81a06695 (patch) | |
tree | 1e8bb40e470278d6100ab828a801d2f13b45fb4b /test | |
parent | 8fa3854f01b7d3e40607ad4765e5df8732f2520d (diff) | |
download | connman-94cea803b00157a8546e02bd39efae1d81a06695.tar.gz connman-94cea803b00157a8546e02bd39efae1d81a06695.tar.bz2 connman-94cea803b00157a8546e02bd39efae1d81a06695.zip |
test: Allow setting gateway for a static ip address.
Diffstat (limited to 'test')
-rwxr-xr-x | test/set-ip-method | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/set-ip-method b/test/set-ip-method index 0d08e4d3..9f202f75 100755 --- 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 |