added mullvad reconnect on dns failure script

This commit is contained in:
2023-10-09 14:39:12 +02:00
parent af2baf9dfc
commit 0a467597cc
3 changed files with 56 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
# script for updating all packages but excluding a list of packages
# set path to list of packages to exclude
exclude_list_file=~/.setup/packages/exclude_from_updating.list
# load list of packages to exclude
exclude_list=$(cat $exclude_list_file)
# define function that calls yay update and excludes packages from exclude_list
function update_system {
yay -Syu --noconfirm --needed --noprovides --ignore $exclude_list
}
# also define function that only updates packages from pacman
function update_pacman_packages {
sudo pacman -Syu --noconfirm --needed --noprovides --ignore $exclude_list
}