explicitely reinstall linux-image-generic on ubuntu, after removing old kernel

This commit is contained in:
Cyryl Płotnicki-Chudyk 2016-04-10 16:06:52 +02:00
parent ea1f6c468f
commit cfe697570c
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
#!/bin/bash
sudo apt-get remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)
sudo apt-get remove -y $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)
sudo apt-get install -y linux-image-generic
sudo apt-get autoremove