Browse Source

Remove outdated kernels

pull/264/head
Xavier Petit 5 years ago
parent
commit
ba64ff3c1a
No known key found for this signature in database
GPG Key ID: CA3F2B17E25ABD26
  1. 7
      scripts/install_client.sh

7
scripts/install_client.sh

@ -28,6 +28,13 @@ apt-get update
apt-get -y upgrade
apt-get -y autoremove --purge
# Remove outdated kernels
old_kernels=$(ls -1 /boot/config-* | xargs -n1 basename | grep -v "$(uname -r)" | cut -d- -f2,3)
for old_kernel in $old_kernels; do
dpkg -P $(dpkg-query -f '${binary:Package}\n' -W *"$old_kernel"*)
done
. bash_tweaks.sh
. ssh.sh
. firewall.sh

Loading…
Cancel
Save