|
1 |
| -#! /bin/sh -e |
| 1 | +#!/bin/sh -e |
2 | 2 |
|
3 | 3 | . ../../common-script.sh
|
4 | 4 |
|
5 | 5 | setUpRepos() {
|
6 | 6 | if ! grep -q "^\s*$$jupiter-staging$$" /etc/pacman.conf; then
|
7 |
| - printf "%b\n" "${CYAN}Adding jupiter-staging to pacman repositories...${RC}" |
| 7 | + printf "%b\n" "${CYAN}Adding jupiter-staging to pacman repositories...${RC}" |
8 | 8 | echo "[jupiter-staging]" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
9 |
| - echo "Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/\$repo/os/\$arch" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf |
10 |
| - echo "SigLevel = Never" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf |
| 9 | + echo "Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/\$repo/os/\$arch" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf |
| 10 | + echo "SigLevel = Never" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf |
11 | 11 | fi
|
12 | 12 | if ! grep -q "^\s*$$holo-staging$$" /etc/pacman.conf; then
|
13 |
| - printf "%b\n" "${CYAN}Adding holo-staging to pacman repositories...${RC}" |
14 |
| - echo "[holo-staging]" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf |
15 |
| - echo "Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/\$repo/os/\$arch" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf |
16 |
| - echo "SigLevel = Never" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf |
| 13 | + printf "%b\n" "${CYAN}Adding holo-staging to pacman repositories...${RC}" |
| 14 | + echo "[holo-staging]" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf |
| 15 | + echo "Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/\$repo/os/\$arch" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf |
| 16 | + echo "SigLevel = Never" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf |
17 | 17 | fi
|
18 | 18 | }
|
19 | 19 |
|
20 | 20 | installKernel() {
|
21 | 21 | if ! "$PACKAGER" -Q | grep -q "\blinux-neptune"; then
|
22 |
| - printf "%b\n" "${CYAN}Installing linux-neptune..." |
| 22 | + printf "%b\n" "${CYAN}Installing linux-neptune..." |
23 | 23 | "$ESCALATION_TOOL" "$PACKAGER" -Syyu --noconfirm
|
24 | 24 | "$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm linux-neptune linux-neptune-headers
|
25 |
| - "$ESCALATION_TOOL" mkinitcpio -P |
| 25 | + "$ESCALATION_TOOL" mkinitcpio -P |
26 | 26 | else
|
27 |
| - printf "%b\n" "${GREEN}linux-neptune detected. Skipping installation.${RC}" |
| 27 | + printf "%b\n" "${GREEN}linux-neptune detected. Skipping installation.${RC}" |
28 | 28 | fi
|
29 | 29 |
|
30 | 30 | if [ -f /etc/default/grub ]; then
|
31 |
| - printf "%b\n" "${CYAN}Updating GRUB...${RC}" |
32 |
| - if ! grep -q '^UPDATEDEFAULT=' /etc/default/grub; then |
33 |
| - echo 'UPDATEDEFAULT=yes' | sudo tee -a /etc/default/grub |
34 |
| - else |
35 |
| - sudo sed -i 's/^UPDATEDEFAULT=.*/UPDATEDEFAULT=yes/' /etc/default/grub |
36 |
| - fi |
37 |
| - if [ -f /boot/grub/grub.cfg ]; then |
38 |
| - "$ESCALATION_TOOL" grub-mkconfig -o /boot/grub/grub.cfg |
39 |
| - else |
40 |
| - printf "%b\n" "${RED}GRUB configuration file not found. Run grub-mkconfig manually.${RC}" |
41 |
| - fi |
| 31 | + printf "%b\n" "${CYAN}Updating GRUB...${RC}" |
| 32 | + if ! grep -q '^UPDATEDEFAULT=' /etc/default/grub; then |
| 33 | + echo 'UPDATEDEFAULT=yes' | "$ESCALATION_TOOL" tee -a /etc/default/grub |
| 34 | + else |
| 35 | + "$ESCALATION_TOOL" sed -i 's/^UPDATEDEFAULT=.*/UPDATEDEFAULT=yes/' /etc/default/grub |
| 36 | + fi |
| 37 | + if [ -f /boot/grub/grub.cfg ]; then |
| 38 | + "$ESCALATION_TOOL" grub-mkconfig -o /boot/grub/grub.cfg |
| 39 | + else |
| 40 | + printf "%b\n" "${RED}GRUB configuration file not found. Run grub-mkconfig manually.${RC}" |
| 41 | + fi |
42 | 42 | else
|
43 | 43 | printf "%b\n" "${RED}GRUB not detected. Manually set your bootloader to use linux-neptune.${RC}"
|
44 | 44 | fi
|
|
0 commit comments