IPv6LL no longer uses SOII (ifconfig(8) `soii' description got fixed). Don't ignore this step in dry-runs. In analogy to how we print { ifconfig trunk0 || ifconfig trunk0 create; }
the file check could be deferred and printed as well, i.e. [[ -f /etc/soii.key ]] && sysctl ... Better print the check? Feedback? Objection? OK? Index: netstart =================================================================== RCS file: /cvs/src/etc/netstart,v retrieving revision 1.220 diff -u -p -r1.220 netstart --- netstart 21 Oct 2022 12:04:51 -0000 1.220 +++ netstart 24 Oct 2022 18:55:40 -0000 @@ -323,9 +323,14 @@ done shift $((OPTIND-1)) # Load key material for the generation of IPv6 Semantically Opaque Interface -# Identifiers (SOII) used for link local and SLAAC addresses. -$PRINT_ONLY || [[ ! -f /etc/soii.key ]] || - sysctl -q "net.inet6.ip6.soiikey=$(</etc/soii.key)" +# Identifiers (SOII) used for SLAAC addresses. +if [[ -f /etc/soii.key ]]; then + if $PRINT_ONLY; then + print -r -- 'sysctl -q "net.inet6.ip6.soiikey=$(</etc/soii.key)"' + else + sysctl -q "net.inet6.ip6.soiikey=$(</etc/soii.key)" + fi +fi # If we were invoked with a list of interface names, just reconfigure these # interfaces (or bridges), add default routes and return.