Remove Automaticamente os Kernel Antigos do GRUB
Publicado por William Lima Reiznautt 23/08/2006
[ Hits: 6.638 ]
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
Cura VMWare Player e Workstation
ADMINISTRANDO USUARIOS COM XDIALOG
Nenhum comentário foi encontrado.
Como escolher o melhor escalonador de CPU para melhorar o desempenho da máquina
Curiosidade sobre DOOM Guy e Isabelle de Animal Crossing
Inicializando servidor Ubuntu na AWS e rodando apache em Container
Conheça o Octopi, outro frontend para o Pacman com acesso ao ARU (Arch Linux e derivados)
Terminal transparente no Debian 12 com interface i3wm usando Xfce4-Terminal e Compton
Como compilar o DOOM RETRO no Linux
Stacer - um otimizador gráfico básico de Linux
Corrigindo o erro de "WARNING: Possibly missing firmware for module" no Arch Linux
Como colocar uma assinatura digital em um código compilado ! (0)
Após atualização do Ubuntu 22.04.4 LTS perdi a instalação da placa de ... (0)
DRIVER DE ADPTADOR HDMI PARA USB (2)