Updated scripts
This commit is contained in:
parent
098b12d252
commit
f2bd0b0626
@ -26,6 +26,9 @@ if pacman -Qs timeshift >/dev/null; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Read currently operating kernel version
|
||||
KERNEL=$(uname -r)
|
||||
|
||||
# Update all pacman packages
|
||||
printf -- '\033[33m Updating pacman packages\n\033[37m'
|
||||
sudo pacman -Suyy --noconfirm
|
||||
@ -356,22 +359,19 @@ sudo pacman --noconfirm --needed -S timeshift
|
||||
|
||||
# Install sunshine
|
||||
printf -- '\033[33m Installing Sunshine\n\033[37m'
|
||||
# if [ -d ~/sunshine.pkg.tar.zst ]; then rm -rf ~/sunshine.pkg.tar.zst; fi
|
||||
# cd ~
|
||||
# wget https://github.com/LizardByte/Sunshine/releases/latest/download/sunshine.pkg.tar.zst
|
||||
# sudo pacman -U --noconfirm sunshine.pkg.tar.zst
|
||||
# if [ -d ~/sunshine.pkg.tar.zst ]; then rm -rf ~/sunshine.pkg.tar.zst; fi
|
||||
sudo pacman --noconfirm --needed -S intel-media-driver
|
||||
yay --noconfirm --needed -S sunshine
|
||||
echo 'KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/60-sunshine.rules
|
||||
sudo udevadm control --reload-rules
|
||||
sudo udevadm trigger
|
||||
sudo modprobe uinput
|
||||
sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
|
||||
mkdir -p ~/.config/systemd/user
|
||||
cp -f ~/code_server/config/systemd/user/sunshine.service ~/.config/systemd/user/sunshine.service
|
||||
sudo systemctl daemon-reload
|
||||
systemctl --user start sunshine
|
||||
if [ "$KERNEL" == "$(uname -r)" ]; then
|
||||
sudo udevadm control --reload-rules
|
||||
sudo udevadm trigger
|
||||
sudo modprobe uinput
|
||||
sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
|
||||
sudo systemctl daemon-reload
|
||||
systemctl --user start sunshine
|
||||
fi
|
||||
|
||||
# Symlink update script
|
||||
printf -- '\033[33m Symlinking update wrapper\n\033[37m'
|
||||
@ -382,4 +382,8 @@ ln -sf ~/code_server/update_wrapper.sh ~/.local/bin/update
|
||||
printf -- '\033[33m Symlinking bashrc config\n\033[37m'
|
||||
ln -sf ~/code_server/bashrc ~/.bashrc
|
||||
|
||||
printf -- '\033[32m \n\n***** Update complete! Please restart your terminal. *****\n\n\033[37m'
|
||||
if [ "$KERNEL" == "$(uname -r)" ]; then
|
||||
printf -- '\033[32m \n\n***** Update complete! *****\n\n\033[37m'
|
||||
else
|
||||
printf -- '\033[32m \n\n***** Update complete! KERNEL UPDATE !!! Please reboot. *****\n\n\033[37m'
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user