]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Revert previous commit. Fix is_module instead to do not match partial module names.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 8 Mar 2011 20:49:06 +0000 (20:49 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 8 Mar 2011 20:49:06 +0000 (20:49 +0000)
svn-id: @12198

rc.d/init.d/functions
sysconfig/network-scripts/functions.network

index e25549c5fe487cfaa02cdf7aec4728e6c5d98844..15f867a9cff853ad0174ed7f7651568707ee5e26 100644 (file)
@@ -939,7 +939,7 @@ confirm() {
 is_module() {
        # module name without .o at end
        if ! lsmod | grep -q "$1"; then
-               if ls -R /lib/modules/$(uname -r)/ 2> /dev/null | grep -q "${1}.\(\|k\)o\(\|.gz\)"; then
+               if ls -1R /lib/modules/$(uname -r)/ 2> /dev/null | grep -q "^${1}.\(\|k\)o\(\|.gz\)"; then
                        # true
                        return 0
                fi
index 151835179bed1991538bae0f8ebcb4859934c31f..86b72f04f99af38b5ce26d3159d3c33b62880e90 100644 (file)
@@ -346,16 +346,12 @@ set_down_loopback()
 
 modprobe_net()
 {
-       if is_yes "$IPV6_NETWORKING" && \
-               [ "$(awk '$1 ~ /^TCPv6/ { print $8 }' /proc/net/protocols 2> /dev/null)" != "kernel" ] && \
-               is_module "ipv6"; then
-                       _modprobe single ipv6
+       if is_yes "$IPV6_NETWORKING" && is_module "ipv6"; then
+               _modprobe single ipv6
        fi
 
-       if is_yes "$IPX" && \
-               [ "$(awk '$1 ~ /^IPX/ { print $8 }' /proc/net/protocols 2> /dev/null)" != "kernel" ] && \
-               is_module "ipx"; then
-                       _modprobe single ipx
+       if is_yes "$IPX" && is_module "ipx"; then
+               _modprobe single ipx
        fi
 }
 
This page took 0.072615 seconds and 4 git commands to generate.