mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
dev-util/pentoo-udev-rules: udev rule so my halow device works
This commit is contained in:
parent
7bfbdbd0b5
commit
04531f23de
2 changed files with 39 additions and 0 deletions
6
dev-util/pentoo-udev-rules/files/99-pentoo.rules
Normal file
6
dev-util/pentoo-udev-rules/files/99-pentoo.rules
Normal 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"
|
||||
33
dev-util/pentoo-udev-rules/pentoo-udev-rules-0.0.1.ebuild
Normal file
33
dev-util/pentoo-udev-rules/pentoo-udev-rules-0.0.1.ebuild
Normal 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
|
||||
}
|
||||
Loading…
Reference in a new issue