diff --git a/Lrp2/usr/share/shorewall/firewall b/Lrp2/usr/share/shorewall/firewall index df295caac..6023f3b4d 100755 --- a/Lrp2/usr/share/shorewall/firewall +++ b/Lrp2/usr/share/shorewall/firewall @@ -2285,8 +2285,6 @@ check_config() { verify_os_version - load_kernel_modules check - echo "Determining Zones..." determine_zones @@ -4527,8 +4525,9 @@ add_ip_aliases() # # Load kernel modules required for Shorewall # -load_kernel_modules() #1 = command +load_kernel_modules() { + local save_modules_dir=$MODULESDIR [ -z "$MODULESDIR" ] && \ MODULESDIR=/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter @@ -4536,24 +4535,33 @@ load_kernel_modules() #1 = command modules=$(find_file modules) if [ -f $modules -a -d $MODULESDIR ]; then - [ "$1" = silent ] || echo "Loading Modules..." + echo "Loading Modules..." . $modules - case $1 in - start|restart) - save_command "reload_kernel_modules <