mirror of
https://codeberg.org/scip/jaildk.git
synced 2025-12-17 12:41:10 +01:00
Merge branch 'main' of github.com:TLINDEN/jaildk
This commit is contained in:
2
Makefile
2
Makefile
@@ -8,7 +8,7 @@ all:
|
|||||||
rm -f src/_jaildk-completion.bash
|
rm -f src/_jaildk-completion.bash
|
||||||
|
|
||||||
install:
|
install:
|
||||||
sh jaildk setup $JAILDIR
|
sh jaildk setup $(JAILDIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f jaildk
|
rm -f jaildk
|
||||||
|
|||||||
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,17 @@ reply_version() {
|
|||||||
COMPREPLY=( $(compgen -W "${versions[*]}" -- "$cur") )
|
COMPREPLY=( $(compgen -W "${versions[*]}" -- "$cur") )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# we're taking the easy path here. There might be cases where the
|
||||||
|
# $name_enable variable doesn't match the actual rc-Script, which
|
||||||
|
# we will not catch the way we're doing it here, but these are rare
|
||||||
|
# and the user can specify something manually as well. Also this
|
||||||
|
# method is way faster than executing rcorder inside the jail
|
||||||
|
reply_rcscripts() {
|
||||||
|
local jail=${COMP_WORDS[2]}
|
||||||
|
local scripts=$(ls $JAILDIR/run/$jail/usr/local/etc/rc.d)
|
||||||
|
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 +80,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
|
||||||
|
|||||||
@@ -1353,7 +1353,7 @@ jaildk_jail() {
|
|||||||
case $mode in
|
case $mode in
|
||||||
*)
|
*)
|
||||||
service jail $mode $jail
|
service jail $mode $jail
|
||||||
jaildk_ipfw $jail $mode
|
jaildk_ipfw $jail -m $mode
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user