2 ###############################################################################
4 # Copyright (c) 2019 Intel.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 ###############################################################################
21 # Test script to load wls module.
31 echo "Unloading WLS module"
32 /sbin/lsmod | grep -s wls > /dev/null
33 if [ $? -eq 0 ] ; then
43 if [ ! -f $RTE_WLS/wls.ko ];then
44 echo "## ERROR: Folder does not have the WLS Kernel Module."
45 echo " To fix, please try to rebuild WLS"
51 /sbin/lsmod | grep -s wls > /dev/null
52 if [ $? -eq 1 ] ; then
53 if [ -f /lib/modules/$(uname -r)/updates/drivers/intel/wls/wls.ko ] ; then
54 echo "Loading WLS module"
55 sudo /sbin/modprobe wls wlsMaxClients=4
57 echo "No module. WLS is not istalled? do 'make install'"