omarchy-ane-dkms: ANE on by default on T6021
omarchy-ane removed omarchy-ane-m2-enable and the modprobe gate packaging/modprobe/ane_t6021.conf, and added 90-omarchy-ane-firmware.hook, which fetches the T6021 firmware after each install and upgrade (omarchy-ane receipts/2026-10-01-t6021-default-on). - package(): install the firmware hook; drop omarchy-ane-m2-enable, the gate file and its backup=() entry. On upgrade pacman deletes an unchanged gate file; a changed one becomes ane_t6021.conf.pacsave, which modprobe does not read (it reads only *.conf). - post_remove: remove both firmware files that omarchy-ane-firmware-fetch writes (T602x and T8112). Drop the ane-t6021 opt-in edit: no overlay reads that key now. - The overlay comment names /usr/share/omarchy-platform/dtb-overlays.
This commit is contained in:
1 parent
a2b5c4000f
commit
8e5c2d2a8b
2 files changed
+8
-15
No files matched your search
@@ -1,12 +1,7 @@
|
||||
# omarchy-ane-m2-enable writes these two files. pacman does not own them, so
|
||||
# remove them with the package, as omarchy-ane-m2-enable --disable does.
|
||||
# omarchy-ane-firmware-fetch writes the ANE firmware (90-omarchy-ane-firmware.hook
|
||||
# on T6021, by hand on T6020, T6022 and T8112). pacman does not own it.
|
||||
post_remove() {
|
||||
rm -f /usr/lib/firmware/apple/ane/t602x_ane0_fw_selene_rc4x.macho
|
||||
rm -f /usr/lib/firmware/apple/ane/t602x_ane0_fw_selene_rc4x.macho \
|
||||
/usr/lib/firmware/apple/ane/h14_ane_fw_bia_j4xx.macho
|
||||
rmdir /usr/lib/firmware/apple/ane 2>/dev/null || :
|
||||
|
||||
local opt_in=/etc/omarchy-platform/dtb-overlays.opt-in
|
||||
if [[ -f $opt_in ]]; then
|
||||
sed -i '/^ane-t6021$/d' "$opt_in"
|
||||
[[ -s $opt_in ]] || rm -f "$opt_in"
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user