Commit c7950dc8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

move nvidia-clean-drivers to epm remove-old-kernels

parent cde377b8
...@@ -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)"
......
...@@ -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
......
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