Pxtl, the script is explained in https://markmcb.com/2013/02/04/cleanup-unused-linux-kernels-in-ubuntu/ I do not recommend to use it, though. Rather use the instructions in the given workaround. (Even the script called purge-old-kernels isn't perfect and not usable in some more complex cases, but at least you can report bugs about it.)
Pxtl, the script is explained in https:/ /markmcb. com/2013/ 02/04/cleanup- unused- linux-kernels- in-ubuntu/ I do not recommend to use it, though. Rather use the instructions in the given workaround. (Even the script called purge-old-kernels isn't perfect and not usable in some more complex cases, but at least you can report bugs about it.)