Skip to content

Commit

Permalink
xt_multiport removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonym-tsk committed Sep 13, 2024
1 parent 869133e commit d676f11
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions etc/init.d/common
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,6 @@ reload_service() {
kernel_modules() {
KERNEL=$(uname -r)

if [ -z "$(lsmod 2>/dev/null | grep "xt_multiport ")" ]; then
multiport_mod_path=$(find "/lib/modules/$KERNEL" -name "xt_multiport.ko*")

if [ -n "$multiport_mod_path" ]; then
insmod "$multiport_mod_path" &> /dev/null
echo "xt_multiport.ko loaded"
else
echo "Cannot find xt_multiport.ko module"
fi
fi

if [ -z "$(lsmod 2>/dev/null | grep "xt_connbytes ")" ]; then
connbytes_mod_path=$(find "/lib/modules/$KERNEL" -name "xt_connbytes.ko*")

Expand Down

0 comments on commit d676f11

Please sign in to comment.