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

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


Signed-off-by: default avatarLior Spach <ls12@inf.ufpr.br>
parent bf845f5c
No related branches found
No related tags found
No related merge requests found
...@@ -20,18 +20,18 @@ ...@@ -20,18 +20,18 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA. # USA.
#If upgrading, there is no need to execute this code
if [[ "$1" = "upgrade" ]]; then if [[ "$1" = "upgrade" ]]; then
exit 0 exit 0
fi fi
# TODO: remove lines instead of changing them to "blank"
# removing conflicting modules from blacklist # removing conflicting modules from blacklist
sed -i s/'# replaced by rt3562sta'/''/ /etc/modprobe.d/blacklist.conf sed -i '/# replaced by rt3562sta$/d' /etc/modprobe.d/blacklist.conf
sed -i s/'blacklist rt2800pci'/''/ /etc/modprobe.d/blacklist.conf sed -i '/blacklist rt2800pci$/d' /etc/modprobe.d/blacklist.conf
# removing wireless entries from modules file # removing wireless entries from modules file
sed -i s/'# enable wireless for pregao 71/2010'/''/ /etc/modules sed -i '/# enable wireless for pregao 71\/2010$/d' /etc/modules
sed -i s/'rt3562sta'/''/ /etc/modules sed -i '/rt3562sta$/d' /etc/modules
echo "Removing wireless module from dkms tree..." echo "Removing wireless module from dkms tree..."
dkms remove -m lepregao712010 -v 2.3.0.0-Alpha-v2 --all dkms remove -m lepregao712010 -v 2.3.0.0-Alpha-v2 --all
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment