This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
## ONLY DEDICATED TO FEDORA WORK STATION. | |
## For an unknown reason as far as I know, Fedora kernels update doesn't | |
## remove the very old /lib/modules dir from system and then, cumulate | |
## numbers of modules kernel folders. | |
## This very small script install it self as a boot service and check | |
## if the the kernels in /boot directory are the only present in /lib/modules, | |
## then, clean if needed. | |
## |