Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- grub_cfg=/etc/default/grub
- kernel_selection=$(grep "menuentry" /boot/grub/grub.cfg | cut -d "'" -f 2 | grep Debian | grep 6.1.0-29-amd64 | grep -v "Debian GNU/Linux, with Linux 6.1.0-29-amd64 (recovery mode)")
- echo $kernel_selection
- echo "GRUB_DEFAULT=\"Advanced options for Debian GNU/Linux>$kernel_selection\"" >> $grub_cfg
Advertisement
Add Comment
Please, Sign In to add comment