summarylogtreecommitdiffstats
path: root/macbook-12-1-linux-fixes.install
blob: c3291a683a25c8188c7fbdb6062303458fb55b31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
    echo "Enabling disable-wakeup.service..."

    # Enable the systemd service if not already enabled
    if ! systemctl is-enabled disable-wakeup.service &>/dev/null; then
        systemctl enable disable-wakeup.service
        echo "Service disable-wakeup.service has been enabled."
    else
        echo "Service disable-wakeup.service was already enabled."
    fi

    echo "Post-installation complete! To finalize:"
    echo "1. Downgrade wpa_supplicant to version 2:2.10-8 manually."
    echo "   * Get package: curl -O https://archive.archlinux.org/packages/w/wpa_supplicant/wpa_supplicant-2:2.10-8-x86_64.pkg.tar.zst"
    echo "   * Install: sudo pacman -U wpa_supplicant-2:2.10-8-x86_64.pkg.tar.zst"
    echo "2. Add 'IgnorePkg = wpa_supplicant' to your /etc/pacman.conf."
    echo "NOTE: If you had a mbfan config before, this package replaces that."
    echo "NOTE: The disable-wakeup.service will disable LID0 and XHC1 from /proc/acpi/wakeup"
}