Skip to content
Snippets Groups Projects
Commit e3f8eb69 authored by Lior Spach's avatar Lior Spach
Browse files

le-pregao-712010: Refs #1280, Avoid adding duplicated entries (modules/blacklist)


Signed-off-by: default avatarLior Spach <ls12@inf.ufpr.br>
parent 57df6e7b
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,18 @@ else
echo "apt-get install linux-headers-$KERNEL_VERSION"
fi
#If already added the entries in /etc/modules, dont do that again.
TEST_IF_IN_MODULES=$(grep "rt3562sta$" /etc/modules)
if [ "$TEST_IF_IN_MODULES" == "" ]; then
# Put conflicting modules at /etc/modprobe.d/blacklist.conf
echo "# replaced by rt3562sta" >> /etc/modprobe.d/blacklist.conf
echo "blacklist rt2800pci" >> /etc/modprobe.d/blacklist.conf
# Put conflicting modules at /etc/modprobe.d/blacklist.conf
echo "# enable wireless for pregao 71/2010" >> /etc/modules
echo "rt3562sta" >> /etc/modules
fi
# Function to set selections
setselections() {
selfile=$1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment