Want to subscribe to topics you're interested in?
Become a Member

Beta Branch update inc/csftweaks.inc modprobe -l doesn't exist on CentOS 7

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jun 24, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    55,816
    12,275
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,861
    Local Time:
    5:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    update inc/csftweaks.inc modprobe -l doesn't exist on CentOS 7

    seems the -l flag in modprobe on CentOS 7 no longer exists like on CentOS 6 so switching it out for simple find search for ipset kernel module support


    find /lib/modules/`uname -r` -name 'ipset'

    Continue reading...

    123.08beta03 branch

    * 123.08beta03 branch is the merging of the 3 branches - .08 beta 02 + 123.08lua + 123.08livestats so the new beta has both Nginx Lua + LuaJIT support + new Nginx vhost traffic statistics
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,816
    12,275
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,861
    Local Time:
    5:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    CentOS 6 modprobe -l
    Code:
    modprobe -l | grep 'ip_set' 
    kernel/net/netfilter/ipset/ip_set.ko
    kernel/net/netfilter/ipset/ip_set_bitmap_ip.ko
    kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.ko
    kernel/net/netfilter/ipset/ip_set_bitmap_port.ko
    kernel/net/netfilter/ipset/ip_set_hash_ip.ko
    kernel/net/netfilter/ipset/ip_set_hash_ipport.ko
    kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko
    kernel/net/netfilter/ipset/ip_set_hash_ipportnet.ko
    kernel/net/netfilter/ipset/ip_set_hash_net.ko
    kernel/net/netfilter/ipset/ip_set_hash_netport.ko
    kernel/net/netfilter/ipset/ip_set_list_set.ko
    
    CentOS 7 modprobe -l
    Code:
    modprobe -l | grep 'ip_set'
    modprobe: invalid option -- 'l'
    replaced with find command

    CentOS 6
    Code:
    find /lib/modules/`uname -r` -name 'ipset'
    /lib/modules/2.6.32-504.23.4.el6.x86_64/kernel/net/netfilter/ipset
    CentOS 7
    Code:
    find /lib/modules/`uname -r` -name 'ipset'
    /lib/modules/3.10.0-229.4.2.el7.x86_64/kernel/net/netfilter/ipset