diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-08 06:05:25 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-08 06:05:25 +0200 |
commit | a630e17bd7d77df2b88ee3995e35ed1b88f00830 (patch) | |
tree | 7b6f7e61baf09c5264820b106a3a5c1110ca3518 /sys/src/cmd/ip/ipconfig/ppp.c | |
parent | 0e516cbf488a9ec8edae3dc6efca2baa0c3d95bd (diff) |
ip/ipconfig, ip/ppp: preserve preexisting entries when writing /net/ndb
it is now possible to configure additional interfaces (like wifi)
and store the network information while preserving old entries
in /net/ndb. this allows to easily switch from ethernet to wifi
and have dhcp configure dns without having to clear /net/ndb.
Diffstat (limited to 'sys/src/cmd/ip/ipconfig/ppp.c')
-rw-r--r-- | sys/src/cmd/ip/ipconfig/ppp.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/src/cmd/ip/ipconfig/ppp.c b/sys/src/cmd/ip/ipconfig/ppp.c index 8d67925a1..82d5a5578 100644 --- a/sys/src/cmd/ip/ipconfig/ppp.c +++ b/sys/src/cmd/ip/ipconfig/ppp.c @@ -14,11 +14,6 @@ pppbinddev(void) Waitmsg *w; /* ppp does the binding */ - - /* start with an empty config file */ - if(nip == 0) - writendb("", 0, 0); - switch(pid = rfork(RFPROC|RFFDG|RFMEM)){ case -1: sysfatal("can't start ppp: %r"); @@ -55,6 +50,5 @@ pppbinddev(void) /* ppp sets up the configuration itself */ noconfig = 1; - getndb(); } |