forked from DGNum/liminix
odhcp-script only write addresses if there are any
This commit is contained in:
parent
b3e505abf4
commit
106a429b3d
1 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@
|
|||
(each [_ n (ipairs wanted)]
|
||||
(write-value-from-env n))
|
||||
|
||||
(write-addresses "address/" (os.getenv :ADDRESSES))
|
||||
(write-addresses "prefix/" (os.getenv :PREFIXES)))
|
||||
(match (os.getenv :ADDRESSES) s (write-addresses "address/" s))
|
||||
(match (os.getenv :PREFIXES) s (write-addresses "prefix/" s)))
|
||||
|
||||
(let [[ifname state] arg
|
||||
ready (match state
|
||||
|
|
Loading…
Reference in a new issue