Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
c7950dc8
Commit
c7950dc8
authored
Oct 10, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move nvidia-clean-drivers to epm remove-old-kernels
parent
cde377b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
epm-autoremove
bin/epm-autoremove
+0
-8
epm-remove_old_kernels
bin/epm-remove_old_kernels
+10
-0
No files found.
bin/epm-autoremove
View file @
c7950dc8
...
@@ -259,14 +259,6 @@ case $DISTRNAME in
...
@@ -259,14 +259,6 @@ case $DISTRNAME in
docmd epm remove-old-kernels
$(
subst_option non_interactive
--auto
)
docmd epm remove-old-kernels
$(
subst_option non_interactive
--auto
)
if
which nvidia-clean-driver 2>/dev/null
;
then
if
[
-n
"
$non_interactive
"
]
;
then
yes
| sudocmd nvidia-clean-driver
else
sudocmd nvidia-clean-driver
fi
fi
if
[
-z
"
$direct
"
]
;
then
if
[
-z
"
$direct
"
]
;
then
echo
echo
info
"Also you can run 'epm autoremove --direct' to use epm implementation of autoremove (see --help)"
info
"Also you can run 'epm autoremove --direct' to use epm implementation of autoremove (see --help)"
...
...
bin/epm-remove_old_kernels
View file @
c7950dc8
...
@@ -33,6 +33,16 @@ epm_remove_old_kernels()
...
@@ -33,6 +33,16 @@ epm_remove_old_kernels()
fi
fi
assure_exists update-kernel update-kernel 0.9.9
assure_exists update-kernel update-kernel 0.9.9
sudocmd remove-old-kernels
$(
subst_option non_interactive
-y
)
"
$@
"
sudocmd remove-old-kernels
$(
subst_option non_interactive
-y
)
"
$@
"
# remove unused nvidia drivers
if
which nvidia-clean-driver 2>/dev/null
;
then
if
[
-n
"
$non_interactive
"
]
;
then
yes
| sudocmd nvidia-clean-driver
else
sudocmd nvidia-clean-driver
fi
fi
return
;;
return
;;
Ubuntu
)
Ubuntu
)
load_helper epm-query_package
load_helper epm-query_package
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment