Skip to content

Commit b6a9ed5

Browse files
authored
feat(insmod,modinfo,modprobe): support zstd compressed modules (scop#614)
Signed-off-by: Michal Suchanek <[email protected]>
1 parent 67d8108 commit b6a9ed5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

completions/insmod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ _insmod()
77

88
# do filename completion for first argument
99
if ((cword == 1)); then
10-
_filedir '@(?(k)o?(.[gx]z))'
10+
_filedir '@(?(k)o?(.[gx]z|.zst))'
1111
else # do module parameter completion
1212
COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \
1313
-p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur"))

completions/modinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ _modinfo()
4343

4444
# do filename completion if we're giving a path to a module
4545
if [[ $cur == @(*/|[.~])* ]]; then
46-
_filedir '@(?(k)o?(.[gx]z))'
46+
_filedir '@(?(k)o?(.[gx]z|.zst))'
4747
else
4848
_modules $version
4949
fi

completions/modprobe

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ _modprobe()
8080
insert)
8181
# do filename completion if we're giving a path to a module
8282
if [[ $cur == @(*/|[.~])* ]]; then
83-
_filedir '@(?(k)o?(.[gx]z))'
83+
_filedir '@(?(k)o?(.[gx]z|.zst))'
8484
elif [[ -n $module ]]; then
8585
# do module parameter completion
8686
if [[ $cur == *=* ]]; then

0 commit comments

Comments
 (0)