mirror of
https://codeberg.org/scip/jaildk.git
synced 2025-12-17 04:31:02 +01:00
try to fix rc -r
This commit is contained in:
1
TODO
1
TODO
@@ -1,4 +1,3 @@
|
|||||||
- fix the 3 mode commands to use -m so completion works correctly
|
|
||||||
- vnet ipv6 doesnt work anymore
|
- vnet ipv6 doesnt work anymore
|
||||||
UPDATE: with auto_linklocal seems to work after some seconds
|
UPDATE: with auto_linklocal seems to work after some seconds
|
||||||
- on reboot, no pf will be started
|
- on reboot, no pf will be started
|
||||||
|
|||||||
@@ -21,6 +21,15 @@ reply_version() {
|
|||||||
COMPREPLY=( $(compgen -W "${versions[*]}" -- "$cur") )
|
COMPREPLY=( $(compgen -W "${versions[*]}" -- "$cur") )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reply_rcscripts() {
|
||||||
|
local jail=${COMP_WORDS[2]}
|
||||||
|
local scripts=$(jaildk _get_rc_scripts $jail | sed 's|.*/||')
|
||||||
|
scripts=${scripts//$'\n'/ }
|
||||||
|
scripts=${scripts//$'\r'/}
|
||||||
|
echo "[jail=$jail] [cur=$cur] [scripts=${scripts[*]}]" > debug.log
|
||||||
|
COMPREPLY=( $(compgen -W "${scripts[*]}" -- "$cur") )
|
||||||
|
}
|
||||||
|
|
||||||
functions='mount,ports,mtree,pf'
|
functions='mount,ports,mtree,pf'
|
||||||
modes='start,stop,status,restart'
|
modes='start,stop,status,restart'
|
||||||
|
|
||||||
@@ -69,7 +78,7 @@ subcmd_opts_status=(-v)
|
|||||||
subcmd_args_status=@jail
|
subcmd_args_status=@jail
|
||||||
|
|
||||||
### sub cmd rc
|
### sub cmd rc
|
||||||
subcmd_opts_rc=(-m:$modes -r)
|
subcmd_opts_rc=(-m:$modes -r:@rcscripts)
|
||||||
subcmd_args_rc=@jail
|
subcmd_args_rc=@jail
|
||||||
|
|
||||||
### sub cmd ipfw
|
### sub cmd ipfw
|
||||||
|
|||||||
Reference in New Issue
Block a user