-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
53 lines (41 loc) · 1.41 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Specifies which kernel and rogue-enemy version to download
KERNEL_URL="https://github.com/jlobue10/ALLY_Nobara_fixes/releases/download/v2.7.0/kernel-6.8.9-200.fsync.ally.fc39.x86_64.tar.gz"
KERNEL_FILE="${KERNEL_URL##*/}"
KERNEL_NAME="${KERNEL_FILE%.tar.gz}"
# Obtain elevated priviledges
password=$(kdialog --password "Enter your sudo password")
if [ -z "$password" ]; then
kdialog --error "No password entered. Exiting."
exit 1
fi
# Pass the password to sudo -v
echo "$password" | sudo -Sv
# Check if the password was correct
if [ $? -eq 0 ]; then
kdialog --msgbox "Sudo authenticated successfully."
else
kdialog --error "Sudo authentication failed."
fi
# Install/update decky loader
curl -L https://github.com/SteamDeckHomebrew/decky-installer/releases/latest/download/install_release.sh | sh
# Install/update HHD
curl -L https://github.com/hhd-dev/hhd-decky/raw/main/install.sh | sh
# Download and extract kernel
cd ~/Downloads
wget $KERNEL_URL --content-disposition
tar xvf $KERNEL_FILE
# Change into RPM directory and install RPMs
cd RPM
sudo dnf install -y *.rpm
# Clean up file
cd ~/Downloads
rm -rf RPM
rm $KERNEL_FILE
# Install/update SimpleDeckyTDP
curl -L https://github.com/aarron-lee/SimpleDeckyTDP/raw/main/install.sh | sh
# Reboot the system
read -p "Are you ready to reboot your Ally? (y/n): " ready_reboot
if [[ $ready_reboot == "y" || $ready_reboot == "Y" ]]; then
reboot
fi