Add a script for making grub verbose
This commit is contained in:
parent
fdd30400a3
commit
fe7b5e4545
8
scripts/Common/Config/GRUB/verbose.sh
Executable file
8
scripts/Common/Config/GRUB/verbose.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
configFile=/etc/default/grub;
|
||||
pattern="^\\(GRUB_CMDLINE_LINUX_DEFAULT=\".*\\)\\([[:space:]]quiet\\|quiet[[:space:]]\\)\\(.*\".*\\)$";
|
||||
|
||||
if grep "$pattern" "$configFile" > /dev/null
|
||||
then
|
||||
sudo sed -i "/$pattern/{ h; s/^\\(.*\\)$/#\\1/; p; x; s/$pattern/\\1\\3/; };" "$configFile";
|
||||
fi;
|
Loading…
Reference in a new issue