(sorry, I'm at an environment that makes my git send-email no go... so
here comes a paste)

>From 8216bb0cbc2e0c67a80b752a1c638663fab8b0de Mon Sep 17 00:00:00 2001
From: Gustavo Sverzut Barbieri <[email protected]>
Date: Mon, 15 Nov 2010 07:30:00 -0200
Subject: [PATCH] allow setting gateway for a static ip address.

---
 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 0d08e4d..9f202f7 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
-- 
1.7.2.2



-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to