install: split and harden hardware config scripts
This commit is contained in:
22 files changed
+95
-117
No files matched your search
@@ -10,7 +10,8 @@ if [[ $MACBOOK_MODEL =~ MacBook(8,1|9,1|10,1)|MacBookPro13,[123]|MacBookPro14,[1
|
||||
if [[ -f $NVME_DEVICE ]]; then
|
||||
echo "Applying NVMe suspend fix..."
|
||||
|
||||
cat <<EOF | sudo tee /etc/systemd/system/omarchy-nvme-suspend-fix.service >/dev/null
|
||||
mkdir -p /etc/systemd/system
|
||||
cat > /etc/systemd/system/omarchy-nvme-suspend-fix.service <<'EOF'
|
||||
[Unit]
|
||||
Description=Omarchy NVMe Suspend Fix for MacBook
|
||||
|
||||
@@ -21,8 +22,7 @@ ExecStart=/bin/bash -c 'echo 0 > /sys/bus/pci/devices/0000\:01\:00.0/d3cold_allo
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
chrootable_systemctl_enable omarchy-nvme-suspend-fix.service
|
||||
sudo systemctl daemon-reload
|
||||
systemctl enable omarchy-nvme-suspend-fix.service
|
||||
else
|
||||
echo "Warning: NVMe device not found at expected PCI address (0000:01:00.0)"
|
||||
echo "This fix may not be needed for this MacBook model"
|
||||
|
||||
Reference in new issue
Block a user