install: split and harden hardware config scripts
This commit is contained in:
22 files changed
+95
-117
No files matched your search
@@ -11,13 +11,13 @@ if omarchy-hw-surface; then
|
||||
fi
|
||||
|
||||
echo "Attempting to autodetect required pinctrl module"
|
||||
pinctrl_module=$(lsmod | grep pinctrl_ | cut -f 1 -d" ")
|
||||
pinctrl_module=$(lsmod | grep pinctrl_ | cut -f 1 -d" " || true)
|
||||
if [[ -z $pinctrl_module ]]; then
|
||||
echo "Failed to autodetect pinctrl module."
|
||||
else
|
||||
echo "Detected pinctrl module: $pinctrl_module"
|
||||
mkdir -p /etc/mkinitcpio.conf.d
|
||||
echo "MODULES=(${pinctrl_module} surface_aggregator surface_aggregator_registry surface_aggregator_hub surface_hid_core surface_hid surface_kbd intel_lpss_pci 8250_dw)" > \
|
||||
/etc/mkinitcpio.conf.d/surface_device_modules.conf
|
||||
fi
|
||||
|
||||
echo "MODULES=(${pinctrl_module} surface_aggregator surface_aggregator_registry surface_aggregator_hub surface_hid_core surface_hid surface_kbd intel_lpss_pci 8250_dw)" | sudo tee /etc/mkinitcpio.conf.d/surface_device_modules.conf >/dev/null
|
||||
|
||||
fi
|
||||
Reference in new issue
Block a user