Remove Automaticamente os Kernel Antigos do GRUB
Publicado por William Lima Reiznautt 23/08/2006
[ Hits: 6.925 ]
Esse Script faz uma varedura no arquivo /etc/grub.conf e remove o Kernel mais antigos deles, e define o Default = 0, Bom para quem atualiza varias maquinas, obs: esse Script esta configurado para o FEDORA CORE 4, se precisar rodar em outra versao, é so alterar o 'egrep'
#!/bin/bash ## Desenvolvido por www.vivaolinux.com.br/~willreli ## ## Data Desenvolvimento 15/03/06 ## ## Atualização 15/03/06 ## ##Manter DEFAULT=0 sed -e 's/^default=[^0]/default=0/' /etc/grub.conf > /tmp/testeker.txt && cat /tmp/testeker.txt > /etc/grub.conf ##Apaga entrada não SMP sed -e '/^title Fedora Core.*FC4)$/,+3d' arqaux/grub2.conf > /tmp/testeker.txt && cat /tmp/testeker.txt > ~/scripts/arqaux/grub2.conf ##Remove Kernel Mais Antigo if [ $(egrep -c '^title Fedora Core' arqaux/grub2.conf) -gt 1 ]; then arm=$(cat arqaux/grub2.conf | egrep '^title Fedora' | sort | head -1 | awk '{print $4}') sed -e '/'$arm'$/,+3d' /etc/grub.conf > /tmp/testeker.txt && cat /tmp/testeker.txt > /etc/grub.conf ./rmkernel.sh fi cat /etc/grub.conf
configurar a rede wireless passando por roteador (melhorado e comentado)
Claro 3g Sony Ericsson md300 script conexao
Criando arquivos de in e out no CBQ
Instalação - Servidor de e-mail
Nenhum coment�rio foi encontrado.
Servidor de Backup com Ubuntu Server 24.04 LTS, RAID e Duplicati (Dell PowerEdge T420)
Visualizar câmeras IP ONVIF no Linux sem necessidade de instalar aplicativos
Atualizar Debian Online de uma Versão para outra
Dica para encontrar diversos jogos Indies criativos
Instalando Discord no Debian 13
Instalar driver Nvidia no Debian 13
Redimensionando, espelhando, convertendo e rotacionando imagens com script
Software livre - será que eu estou tão errado assim? (14)
Boot do PosRog so funciona em notebook (1)