Fix slow boot and add fsck at startup

parent bec34bcf
#!/bin/bash
if [ -z "$(grep fsck /etc/default/grub)" ]
then
sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT=".*\)"/\1 fsck.mode=force fsck.repair=yes"/' /etc/default/grub
fi
update-grub
...@@ -26,6 +26,7 @@ iface $i inet dhcp ...@@ -26,6 +26,7 @@ iface $i inet dhcp
EOF EOF
done done
sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT="quiet\)"/\1 pcie_aspm=off"/' /etc/default/grub sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT="quiet\)"/\1 pcie_aspm=off"/' /etc/default/grub
sed -ie 's/managed=false/managed=true/' /etc/NetworkManager/NetworkManager.conf
if [ $modif -ne 0 ] if [ $modif -ne 0 ]
then then
update-grub update-grub
......
...@@ -32,3 +32,5 @@ run_script fix_firefox.sh ...@@ -32,3 +32,5 @@ run_script fix_firefox.sh
run_script register.sh run_script register.sh
run_script install_polices.sh run_script install_polices.sh
run_script fix_locales.sh run_script fix_locales.sh
run_script fix_network.sh
run_script fix_fsck.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment