summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@geanix.com>2019-07-18 13:49:34 +0200
committerDenis Kenzior <denkenz@gmail.com>2019-07-19 01:21:54 -0500
commit777ae04611abf1c002376e567ffeb0faf985edc8 (patch)
tree038dbabf2ec608a45be3efb0d73e796676e7b284 /test
parent17bf6ac7c0b269bd7ac0678a6f43f920fa8f2fb3 (diff)
downloadofono-777ae04611abf1c002376e567ffeb0faf985edc8.tar.gz
test: process-context-settings: use ip instead of ifconfig/route
Diffstat (limited to 'test')
-rwxr-xr-xtest/process-context-settings6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/process-context-settings b/test/process-context-settings
index 1d30b30d..a536a771 100755
--- a/test/process-context-settings
+++ b/test/process-context-settings
@@ -41,14 +41,14 @@ for path, properties in modems:
print(" IP address is %s" % (address))
print(" Gateway is %s" % (gateway))
- cmd = "ifconfig " + interface + " " + address
- cmd += " netmask 255.255.255.255"
+ cmd = "ip address add dev " + interface + " " + address
+ cmd += "/32"
os.system(cmd);
for i in settings["DomainNameServers"]:
print(" Nameserver is %s" % (i))
- cmd = "route add -host " + i
+ cmd = "ip route add " + i
cmd +=" dev " + interface
os.system(cmd);
print('')