diff --git a/le-pregao-712010/pacote/DEBIAN/postinst b/le-pregao-712010/pacote/DEBIAN/postinst index 446efc4d27334654590bfe7db48f3051107e96db..614263f8a3d09f72708f63a6ff1c1a780f8c475f 100755 --- a/le-pregao-712010/pacote/DEBIAN/postinst +++ b/le-pregao-712010/pacote/DEBIAN/postinst @@ -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