Files
omarchy-pkgs/pkgbuilds/omarchy-ane-dkms/omarchy-ane-dkms.install
T
Joshua Warren 4d29b46a6c Add omarchy-ane-dkms, the Apple Neural Engine driver
The package builds ane.ko and ane_t6021.ko with DKMS from a
joshuaswarren/omarchy-ane release. It installs the device-tree
overlays, the readiness check, the M2 opt-in tools and their pacman
hooks. aarch64 and edge only.

ane_t6021 stays blocked by /etc/modprobe.d/ane_t6021.conf until the
user opts in. Removal takes out the firmware and the opt-in line that
omarchy-ane-m2-enable wrote.

The watch follows published GitHub releases after 24 hours, on the
reviewed lane.
2026-09-30 17:02:16 -05:00

13 lines
458 B
Plaintext

# 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.
post_remove() {
rm -f /usr/lib/firmware/apple/ane/t602x_ane0_fw_selene_rc4x.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
}