Skip to content

Commit

Permalink
Merge pull request #1248 from evelikov/deprecate-kmod
Browse files Browse the repository at this point in the history
Deprecate {ins,rm}mod and mod{info,probe}
  • Loading branch information
scop authored Nov 13, 2024
2 parents 231a39d + 66a52b0 commit 36cbfc6
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 8 deletions.
2 changes: 1 addition & 1 deletion completions/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
/_incus
/_infracost
/inotifywatch
/insmod.static
/_insmod.static
/iperf3
/_istioctl
/javac
Expand Down
14 changes: 7 additions & 7 deletions completions/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ bashcomp_DATA = 2to3 \
info \
inject \
inotifywait \
insmod \
_insmod \
installpkg \
interdiff \
invoke-rc.d \
Expand Down Expand Up @@ -268,8 +268,8 @@ bashcomp_DATA = 2to3 \
mktemp \
mmsitepass \
_mock \
modinfo \
modprobe \
_modinfo \
_modprobe \
_modules \
monodevelop \
_mount \
Expand Down Expand Up @@ -376,7 +376,7 @@ bashcomp_DATA = 2to3 \
_rg \
ri \
rmlist \
rmmod \
_rmmod \
route \
rpcdebug \
rpm \
Expand Down Expand Up @@ -688,7 +688,7 @@ CLEANFILES = \
_incus \
_infracost \
inotifywatch \
insmod.static \
_insmod.static \
iperf3 \
_istioctl \
javac \
Expand Down Expand Up @@ -1108,8 +1108,8 @@ symlinks: $(DATA)
pinfo
$(ss) inotifywait \
inotifywatch
$(ss) insmod \
insmod.static
$(ss) _insmod \
_insmod.static
$(ss) iperf \
iperf3
$(ss) java \
Expand Down
3 changes: 3 additions & 0 deletions completions/insmod → completions/_insmod
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Linux insmod(8) completion -*- shell-script -*-

# Use of this file is deprecated.
# Upstream completion is available in kmod >= 34, use that instead.

_comp_cmd_insmod()
{
local cur prev words cword comp_args
Expand Down
3 changes: 3 additions & 0 deletions completions/modinfo → completions/_modinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Linux modinfo(8) completion -*- shell-script -*-

# Use of this file is deprecated.
# Upstream completion is expected to be available in kmod >= 35, use that instead.

_comp_cmd_modinfo()
{
local cur prev words cword was_split comp_args
Expand Down
3 changes: 3 additions & 0 deletions completions/modprobe → completions/_modprobe
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Linux modprobe(8) completion -*- shell-script -*-

# Use of this file is deprecated.
# Upstream completion is expected to be available in kmod >= 35, use that instead.

_comp_cmd_modprobe()
{
local cur prev words cword was_split comp_args
Expand Down
3 changes: 3 additions & 0 deletions completions/rmmod → completions/_rmmod
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Linux rmmod(8) completion. -*- shell-script -*-
# This completes on a list of all currently installed kernel modules.

# Use of this file is deprecated.
# Upstream completion is available in kmod >= 34, use that instead.

_comp_cmd_rmmod()
{
local cur prev words cword comp_args
Expand Down
4 changes: 4 additions & 0 deletions test/fallback/completions/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ EXTRA_DIST = \
gsctl \
hexdump \
hwclock \
insmod \
ionice \
jungle \
keyring \
kontena \
look \
mdbook \
mock \
modinfo \
modules \
modprobe \
mount \
mount.linux \
newgrp \
Expand All @@ -32,6 +35,7 @@ EXTRA_DIST = \
renice \
repomanage \
reptyr \
rmmod \
rfkill \
rtcwake \
ruff \
Expand Down
1 change: 1 addition & 0 deletions test/fallback/completions/insmod
1 change: 1 addition & 0 deletions test/fallback/completions/modinfo
1 change: 1 addition & 0 deletions test/fallback/completions/modprobe
1 change: 1 addition & 0 deletions test/fallback/completions/rmmmod

0 comments on commit 36cbfc6

Please sign in to comment.