config/yadm/bootstrap: add reflector
This commit is contained in:
parent
510a0b14fa
commit
7737e65a89
|
@ -45,8 +45,19 @@ fi
|
||||||
## Software
|
## Software
|
||||||
section "Software"
|
section "Software"
|
||||||
|
|
||||||
highlight "Colorize Pacman & enable multilib"
|
highlight "Configure pacman"
|
||||||
test -f /etc/pacman.conf && sudo sed -i 's/#Color/Color/' /etc/pacman.conf && sudo sed -i "$(grep -n "\[multilib\]" /etc/pacman.conf | cut -d':' -f1),+1 s/# *//" /etc/pacman.conf
|
if test -f /etc/pacman.conf; then
|
||||||
|
sudo sed -i 's/#Color/Color/' /etc/pacman.conf
|
||||||
|
sudo sed -i "$(grep -n "\[multilib\]" /etc/pacman.conf | cut -d':' -f1),+1 s/# *//" /etc/pacman.conf
|
||||||
|
highlight "Reflector"
|
||||||
|
echo "--save /etc/pacman.d/mirrorlist
|
||||||
|
--protocol https
|
||||||
|
--country Germany
|
||||||
|
--latest 20
|
||||||
|
--sort rate" | sudo tee /etc/xdg/reflector/reflector.conf
|
||||||
|
sudo systemctl start reflector &
|
||||||
|
sudo systemctl enable reflector.timer
|
||||||
|
fi
|
||||||
|
|
||||||
highlight "Block internet at night & on weekdays in the morning to force focus"
|
highlight "Block internet at night & on weekdays in the morning to force focus"
|
||||||
# https://askubuntu.com/a/124512 and https://blog.sleeplessbeastie.eu/2018/06/21/how-to-create-iptables-firewall-using-custom-chains/
|
# https://askubuntu.com/a/124512 and https://blog.sleeplessbeastie.eu/2018/06/21/how-to-create-iptables-firewall-using-custom-chains/
|
||||||
|
|
Loading…
Reference in New Issue