Ticket #9912: 110-MODULESDIR.patch

File 110-MODULESDIR.patch, 1.2 KB (added by edy@…, 5 years ago)

shorewall-lite 4.4.22.2 MODULESDIR.patch

  • lib.common

    a b reload_kernel_modules() { 
    273273 
    274274    [ -z "$MODULESDIR" ] && \ 
    275275        uname=$(uname -r) && \ 
    276         MODULESDIR=/lib/modules/$uname/kernel/net/ipv4/netfilter:/lib/modules/$uname/kernel/net/netfilter:/lib/modules/$uname/kernel/net/sched:/lib/modules/$uname/extra:/lib/modules/$uname/extra/ipset 
     276        MODULESDIR=/lib/modules/$uname/kernel/net/ipv4/netfilter:/lib/modules/$uname/kernel/net/netfilter:/lib/modules/$uname/kernel/net/sched:/lib/modules/$uname/extra:/lib/modules/$uname/extra/ipset:/lib/modules/$uname 
    277277 
    278278    MODULES=$(lsmod | cut -d ' ' -f1) 
    279279 
    load_kernel_modules() # $1 = Yes, if we 
    312312 
    313313    [ -z "$MODULESDIR" ] && \ 
    314314        uname=$(uname -r) && \ 
    315         MODULESDIR=/lib/modules/$uname/kernel/net/ipv4/netfilter:/lib/modules/$uname/kernel/net/netfilter:/lib/modules/$uname/kernel/net/sched:/lib/modules/$uname/extra:/lib/modules/$uname/extra/ipset 
     315        MODULESDIR=/lib/modules/$uname/kernel/net/ipv4/netfilter:/lib/modules/$uname/kernel/net/netfilter:/lib/modules/$uname/kernel/net/sched:/lib/modules/$uname/extra:/lib/modules/$uname/extra/ipset:/lib/modules/$uname 
    316316 
    317317    for directory in $(split $MODULESDIR); do 
    318318        [ -d $directory ] && moduledirectories="$moduledirectories $directory"