dev-util/pentoo-udev-rules: udev rule so my halow device works

This commit is contained in:
Rick Farina (Zero_Chaos) 2024-03-05 11:25:38 -05:00
parent 7bfbdbd0b5
commit 04531f23de
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# New USB device found, idVendor=1d6b, idProduct=0104, bcdDevice=30.66
# Product: AHM27292U 802.11ah
# Manufacturer: ALFA Network Inc.
# before this device shows up it makes two tty interfaces with a different vid/pid
# when modemmanager interogates them they get stuck at the boot loader instead of finishing boot
ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="0005", ENV{ID_MM_DEVICE_IGNORE}="1"

View file

@ -0,0 +1,33 @@
# Copyright 2024-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit udev
DESCRIPTION="udev rules to assist in some way with hardware commonly used in pentoo"
HOMEPAGE="https://github.com/pentoo/pentoo-overlay"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
S="${WORKDIR}"
# No tests
RESTRICT="test"
RDEPEND="
virtual/udev
"
src_install() {
udev_dorules "${FILESDIR}"/99-pentoo.rules
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}