R513-ansible/revert2cgroupv1.sh
2023-11-13 22:08:32 -03:00

5 lines
179 B
Bash
Executable File

#! /bin/bash
sudo sed -i '/^GRUB_CMDLINE_LINUX=/ s/"$/ net.ifnames=0 systemd.unified_cgroup_hierarchy=0"/' /etc/default/grub
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo reboot