liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 106a429b3d325a8fc99827e6c44275e7ee118115
parent b3e505abf490389cd5188fd300808c46242de778
Author: Daniel Barlow <dan@telent.net>
Date:   Wed, 13 Sep 2023 17:51:07 +0100

odhcp-script only write addresses if there are any

Diffstat:
Mpkgs/odhcp-script/odhcp6-script.fnl | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkgs/odhcp-script/odhcp6-script.fnl b/pkgs/odhcp-script/odhcp6-script.fnl @@ -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