From 3ed52863017be33fe616397e8cc46242753b51f8 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sun, 28 Jan 2024 17:57:51 +1100 Subject: [PATCH] Delete old linux-config stuff --- README.md | 3 -- bin/reboot-no-passphrase | 44 ------------------- boot/refind.conf | 8 ---- boot/refind_linux.conf | 1 - etc/modprobe.d/audio-powersave.conf | 2 - etc/modprobe.d/blacklist-pcspkr.conf | 1 - .../system/disable-crypto_keyfile@.service | 11 ----- etc/systemd/system/fix-suspend.service | 10 ----- .../hdparm-disable-power-saving@.service | 9 ---- etc/systemd/system/nouveau-pstate.service | 10 ----- etc/udev/rules.d/10-powersave.rules | 5 --- etc/udev/rules.d/51-flirc.rules | 4 -- 12 files changed, 108 deletions(-) delete mode 100644 README.md delete mode 100755 bin/reboot-no-passphrase delete mode 100644 boot/refind.conf delete mode 100644 boot/refind_linux.conf delete mode 100644 etc/modprobe.d/audio-powersave.conf delete mode 100644 etc/modprobe.d/blacklist-pcspkr.conf delete mode 100644 etc/systemd/system/disable-crypto_keyfile@.service delete mode 100644 etc/systemd/system/fix-suspend.service delete mode 100644 etc/systemd/system/hdparm-disable-power-saving@.service delete mode 100644 etc/systemd/system/nouveau-pstate.service delete mode 100644 etc/udev/rules.d/10-powersave.rules delete mode 100644 etc/udev/rules.d/51-flirc.rules diff --git a/README.md b/README.md deleted file mode 100644 index 236411a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# linux-config - -System configuration files for Linux. These usually should be copied somewhere into `/etc`. diff --git a/bin/reboot-no-passphrase b/bin/reboot-no-passphrase deleted file mode 100755 index 7755c58..0000000 --- a/bin/reboot-no-passphrase +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -# When using the Arch Linux mkinitcpio encrypt if the file /crypto_keyfile.bin -# exists in the initramfs then it will be used to attempt unlocking. -# 1. dd if=/dev/urandom of=/crypto_keyfile.bin bs=1 count=512 -# 2. Add /crypto_keyfile.bin to FILES in /etc/mkinitcpio.conf -# 3. mkinitcpio -p linux -# 4. systemctl enable disable-crypto_keyfiles@$(systemd-escape /dev/disk/by-id/xxx).service -# 5. Run this script when you want to reboot without a passphrase - - -crypto_keyfile="/crypto_keyfile.bin" -reboot_cmd="${1:-sudo reboot}" - -if [ ! -f "$crypto_keyfile" ]; then - echo "Failed to find $crypto_keyfile" - exit 1 -fi - -readarray -t devnames < <( - find \ - /etc/systemd/system/basic.target.wants/ \ - -maxdepth 1 \ - -name 'disable-crypto_keyfile@*' \ - -printf '%f\0' \ - | xargs -0 -n1 systemd-escape -u --instance -) - -if [ ${#devnames[@]} = 0 ]; then - echo "Failed to find your encrypted device. You must have disable-crypto_keyfile@.service enabled." - exit 1 -fi - -echo -n "Enter password for devices: " -read -r -s pw -echo "" -for devname in "${devnames[@]}"; do - echo "Adding key to $devname" - sudo cryptsetup luksAddKey "$devname" "$crypto_keyfile" --new-key-slot 7 < /proc/acpi/wakeup; done' - -[Install] -WantedBy=basic.target diff --git a/etc/systemd/system/hdparm-disable-power-saving@.service b/etc/systemd/system/hdparm-disable-power-saving@.service deleted file mode 100644 index 0fa4aac..0000000 --- a/etc/systemd/system/hdparm-disable-power-saving@.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Disable power management on all HDDs - -[Service] -Type=oneshot -ExecStart=/sbin/hdparm -B 255 /dev/disk/by-id/%i - -[Install] -WantedBy=multi-user.target diff --git a/etc/systemd/system/nouveau-pstate.service b/etc/systemd/system/nouveau-pstate.service deleted file mode 100644 index 0e139b2..0000000 --- a/etc/systemd/system/nouveau-pstate.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Set nouveau pstate -After=basic.target - -[Service] -Type=oneshot -ExecStart=/bin/bash -c 'echo AUTO > /sys/kernel/debug/dri/0/pstate' - -[Install] -WantedBy=basic.target diff --git a/etc/udev/rules.d/10-powersave.rules b/etc/udev/rules.d/10-powersave.rules deleted file mode 100644 index 17b7fc2..0000000 --- a/etc/udev/rules.d/10-powersave.rules +++ /dev/null @@ -1,5 +0,0 @@ -# PCI Runtime Power Management -ACTION=="add", SUBSYSTEM=="pci", ATTR{power/control}="auto" - -# SATA Active Link Power Management -ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="min_power" diff --git a/etc/udev/rules.d/51-flirc.rules b/etc/udev/rules.d/51-flirc.rules deleted file mode 100644 index 994ba61..0000000 --- a/etc/udev/rules.d/51-flirc.rules +++ /dev/null @@ -1,4 +0,0 @@ -# Flirc USB User-Mode Driver -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="20a0", ATTR{idProduct}=="0000", MODE="0666" -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="20a0", ATTR{idProduct}=="0001", MODE="0666" -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="20a0", ATTR{idProduct}=="0002", MODE="0666" -- 2.39.2