Commit 295182eb authored by Lior Spach's avatar Lior Spach

le-pregao-712010: Refs #1280, improve sed(1) to remove only the expected lines

Signed-off-by: Lior Spach's avatarLior Spach <ls12@inf.ufpr.br>
parent bf845f5c
......@@ -20,18 +20,18 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
#If upgrading, there is no need to execute this code
if [[ "$1" = "upgrade" ]]; then
exit 0
fi
# TODO: remove lines instead of changing them to "blank"
# removing conflicting modules from blacklist
sed -i s/'# replaced by rt3562sta'/''/ /etc/modprobe.d/blacklist.conf
sed -i s/'blacklist rt2800pci'/''/ /etc/modprobe.d/blacklist.conf
sed -i '/# replaced by rt3562sta$/d' /etc/modprobe.d/blacklist.conf
sed -i '/blacklist rt2800pci$/d' /etc/modprobe.d/blacklist.conf
# removing wireless entries from modules file
sed -i s/'# enable wireless for pregao 71/2010'/''/ /etc/modules
sed -i s/'rt3562sta'/''/ /etc/modules
sed -i '/# enable wireless for pregao 71\/2010$/d' /etc/modules
sed -i '/rt3562sta$/d' /etc/modules
echo "Removing wireless module from dkms tree..."
dkms remove -m lepregao712010 -v 2.3.0.0-Alpha-v2 --all
......
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