... | ... | @@ -21,6 +21,7 @@ echo "please change if not correct:" |
|
|
echo $linenew
|
|
|
linenew=$(echo $linenew | sed 's/\//\\\//g')
|
|
|
sed 's/GRUB_CMDLINE_LINUX.*$/'"${linenew}"'/' /etc/default/grub
|
|
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
|
|
```
|
|
|
|
|
|
2. Tell udev to rewrite. Create `/etc/udev/rules.d/70-persistent-net.rules` with:
|
... | ... | |