Commit e3f8eb69 authored by Lior Spach's avatar Lior Spach

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

Signed-off-by: Lior Spach's avatarLior Spach <>
parent 57df6e7b
......@@ -37,6 +37,18 @@ else
echo "apt-get install linux-headers-$KERNEL_VERSION"
#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
# Function to set selections
setselections() {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment