1
0

Compare commits

..

4 Commits

Author SHA1 Message Date
fd9f5cb45f disambiguate expected string
"{ lan }" appears only in output
"lan" appears also in the command line we send
2025-04-12 23:49:13 +01:00
b3bdb5a9c4 output-template add lua type() function
I hope you never need it, but (1) I did; (2) it's harmless
2025-04-12 23:40:23 +01:00
8e5f3e29a7 don't write service properties with null values
because serialisation causes them to become empty strings
which are not null
2025-04-12 23:39:13 +01:00
46769563b7 think 2025-04-12 22:24:54 +01:00
4 changed files with 23 additions and 21 deletions

View File

@ -7604,35 +7604,36 @@ Mon Apr 7 23:49:40 BST 2025
DOC TODO DOC TODO
[done] * need to explain the mailing lists and IRC somewhere
[done] * markup the devices section as an appendix.
[done] * docs for outputs? maybe appendix ii
[done] * move "module implementation" from admin to dev (maybe?)
[done] * CI: move from website to Development
[done] * move info on the Community page to Introduction
[halfarsed done] * write doc for porting to new hw
- how to bring up
- what we look for in a new device patch (kconfig style etc)
[done] * add rsyncy thing to rmeote
* we still have serial connection guff in both installation and * we still have serial connection guff in both installation and
development sections development sections
* need to explain the mailing lists and IRC somewhere * convert all the embedded rst to adoc
* markup the devices section as an appendix. maybe convert the
embedded rst to adoc
* remove pages that are not posts from jekyll blog * remove pages that are not posts from jekyll blog
* landing page * landing page
* add rsyncy thing to rmeote
* docs for outputs? maybe appendix ii
* "Continuous updates" is misleading as it gives the impression * "Continuous updates" is misleading as it gives the impression
downstreams would be restarted if an upstream restarts. Not true. downstreams would be restarted if an upstream restarts. Not true.
We should describe secrets subscriber here We should describe secrets subscriber here
* write doc for porting to new hw
- how to bring up
- what we look for in a new device patch (kconfig style etc)
* move "module implementation" from admin to dev (maybe?)
* CI: move from website to Development
* some basic css to make it not the same as (I assume) every single * some basic css to make it not the same as (I assume) every single
other asciidoc site other asciidoc site
* move info on the Community page to Introduction

View File

@ -3,7 +3,7 @@ mkdir -p $out/${name}
writepath(){ writepath(){
mkdir -p $(dirname $1) mkdir -p $(dirname $1)
echo $2 > $1 if test -n "$2" ; then ( echo $2 > $1 ) ;fi
} }
if test -n "$propertiesText"; then if test -n "$propertiesText"; then
mkdir $out/.properties mkdir $out/.properties

View File

@ -28,6 +28,7 @@
: math : math
: ipairs : ipairs
: tonumber : tonumber
: type
:output :output
(fn [service-path path default] (fn [service-path path default]

View File

@ -24,7 +24,7 @@ expect "#READY#"
set timeout 30 set timeout 30
send "nft list set ip table-ip lan || touch /non/existent\n" send "nft list set ip table-ip lan || touch /non/existent\n"
expect { expect {
"lan" { puts "lan found" } "{ \"lan\" }" { puts "lan found" }
"{ }" { puts "missing ifname"; exit 1 } "{ }" { puts "missing ifname"; exit 1 }
"No such file or directory" { exit 1 } "No such file or directory" { exit 1 }
} }
@ -36,7 +36,7 @@ expect "#READY#"
# appears and you just have to make this sleep longer. Ew, yes # appears and you just have to make this sleep longer. Ew, yes
send "sleep 10; nft list set ip table-ip wan || touch /non/existent\n" send "sleep 10; nft list set ip table-ip wan || touch /non/existent\n"
expect { expect {
"ppp0" { puts "ppp0 found " } "{ \"ppp0\" }" { puts "ppp0 found " }
"{ }" { puts "missing ifname"; exit 1 } "{ }" { puts "missing ifname"; exit 1 }
"No such file or directory" { exit 1 } "No such file or directory" { exit 1 }
timeout { exit 1 } timeout { exit 1 }