Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
le4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Linux Educacional 4
le4
Commits
295182eb
Commit
295182eb
authored
11 years ago
by
Lior Spach
Browse files
Options
Downloads
Patches
Plain Diff
le-pregao-712010: Refs #1280, improve sed(1) to remove only the expected lines
Signed-off-by:
Lior Spach
<
ls12@inf.ufpr.br
>
parent
bf845f5c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
le-pregao-712010/pacote/DEBIAN/postrm
+5
-5
5 additions, 5 deletions
le-pregao-712010/pacote/DEBIAN/postrm
with
5 additions
and
5 deletions
le-pregao-712010/pacote/DEBIAN/postrm
+
5
−
5
View file @
295182eb
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment