diff --git a/dev-util/pentoo-udev-rules/files/99-pentoo.rules b/dev-util/pentoo-udev-rules/files/99-pentoo.rules new file mode 100644 index 000000000..aca04dcab --- /dev/null +++ b/dev-util/pentoo-udev-rules/files/99-pentoo.rules @@ -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" diff --git a/dev-util/pentoo-udev-rules/pentoo-udev-rules-0.0.1.ebuild b/dev-util/pentoo-udev-rules/pentoo-udev-rules-0.0.1.ebuild new file mode 100644 index 000000000..c014015ac --- /dev/null +++ b/dev-util/pentoo-udev-rules/pentoo-udev-rules-0.0.1.ebuild @@ -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 +}