summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_init_d11
2 files changed, 7 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 3741c52a3..0455922ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2026-05-18 Oliver Kiddle <opk@zsh.org>
+ * unposted: Completion/Unix/Command/_init_d: complete network
+ interfaces for the netif service given new workings for jails
+
* Nick Price: github #166: Completion/Unix/Command/_init_d,
Completion/BSD/Command/_jail, Completion/BSD/Type/_jails:
complete names of non-running FreeBSD jails
diff --git a/Completion/Unix/Command/_init_d b/Completion/Unix/Command/_init_d
index 939ef102e..7b3c8ee41 100644
--- a/Completion/Unix/Command/_init_d
+++ b/Completion/Unix/Command/_init_d
@@ -129,13 +129,10 @@ _arguments -C -s -A "-*" $flags \
'*:: :->svcargs' && ret=0
if [[ $state == svcargs ]]; then
- case $svcname in
- jail)
- case $line[1] in
- *stop|*restart|console|status) _jails && ret=0 ;;
- *) _jails -c && ret=0 ;;
- esac
- ;;
+ case $svcname:$line[1] in
+ jail:(*stop|*restart|console|status)) _jails && ret=0 ;;
+ jail:*) _jails -c && ret=0 ;;
+ netif:*) _net_interfaces && ret=0 ;;
*)
_call_function ret _init_d-$svcname $line[1]
;;