mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-18 21:00:56 +02:00
added udev rule for dedected
This commit is contained in:
parent
07ad5dd7af
commit
7163a00974
4 changed files with 21 additions and 4 deletions
|
|
@ -1 +1,3 @@
|
|||
EBUILD dedected-9999.ebuild 1408 RMD160 eb850321876abb47c40d4e025d29cc185dcf640c SHA1 9ec16aea567b3c74c007159ae4b4e477129adc8f SHA256 e47a4aea3180ee9902f496280bb5596e7480323e6b9e61c1effe21cb581a3444
|
||||
AUX 99-dect.rules 199 RMD160 dc51d555bcadcd23aca50b5c572f349b22feba01 SHA1 33b80792030a8f8d56b251f5e6da3597099dc285 SHA256 e9830bd99bc043aea3a73c36bab444c9f608ce655c407361a732a2c12c3f1748
|
||||
AUX load-dect.sh 141 RMD160 ea6bc9921ce9dca7a68ea7731bb2f63d728163d9 SHA1 00aaabb1ea6a3ef09f442c54e4b9460f248a99b1 SHA256 51778dff87622940cd13e391888a64558cf7a66673f7585b6d7084fe3b4367c1
|
||||
EBUILD dedected-9999.ebuild 1415 RMD160 1531d64a27844f110a5f1ef95904de02cfb0406a SHA1 463889b01016fcfecc913c63582ae2d082fd98dc SHA256 24ee7241694f35eeaf68709a8cd1013b5a00a7d4b2b020eee5530614f2cf8301
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@ pkg_config() {
|
|||
BUILD_PARAMS="KDIR=${KV_DIR}"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
enewgroup dect
|
||||
}
|
||||
src_compile() {
|
||||
# KDIR="${KV_DIR}" emake || die "emake failed"
|
||||
linux-mod_src_compile
|
||||
|
|
@ -41,11 +44,13 @@ src_install () {
|
|||
#we could add a group and when we add udev rules we may drop this stuff in bin instead
|
||||
dosbin tools/coa_syncsniff tools/dect_cli tools/dump_dip tools/dump_eeprom
|
||||
dosbin tools/pcap2cchan tools/pcapstein tools/dectshark/dectshark
|
||||
insinto /etc/udev/rules.d/
|
||||
doins "${FILESDIR}"/99-dect.rules
|
||||
exeinto /lib/udev/
|
||||
doexe "${FILESDIR}"/load-dect.sh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
linux-mod_pkg_postinst
|
||||
elog "If you expect the com-on-air card to work then you must first create the node"
|
||||
elog "This is done by running \"mknod /dev/coa --mode 660 c 3564 0\""
|
||||
elog "Hopefully this will be handled by udev in the future."
|
||||
elog "If you want to sniff dect as a user add yourself to the dect group"
|
||||
}
|
||||
|
|
|
|||
2
net-wireless/dedected/files/99-dect.rules
Normal file
2
net-wireless/dedected/files/99-dect.rules
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ACTION=="add", SUBSYSTEM=="pcmcia", ATTRS{prod_id1}=="DECTDataDevice", RUN+="/lib/udev/load-dect.sh"
|
||||
ACTION=="add", SUBSYSTEM=="pcmcia", ATTRS{prod_id1}=="DOSCH-AMAND", RUN+="/lib/udev/load-dect.sh"
|
||||
8
net-wireless/dedected/files/load-dect.sh
Normal file
8
net-wireless/dedected/files/load-dect.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
/lib/udev/load-modules.sh com_on_air_cs
|
||||
|
||||
if [ ! -c /dev/coa ]; then
|
||||
mknod /dev/coa --mode 660 c 3564 0
|
||||
chgrp dect /dev/coa
|
||||
fi
|
||||
Loading…
Reference in a new issue