mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
eudev: add back source
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
e0adf91dce
commit
7b6ecd72f2
237
eudev/src/62-nut-usbups.rules
Normal file
237
eudev/src/62-nut-usbups.rules
Normal file
@ -0,0 +1,237 @@
|
||||
# This file is generated and installed by the Network UPS Tools package.
|
||||
|
||||
ACTION!="add|change", GOTO="nut-usbups_rules_end"
|
||||
SUBSYSTEM=="usb_device", GOTO="nut-usbups_rules_real"
|
||||
SUBSYSTEM=="usb", GOTO="nut-usbups_rules_real"
|
||||
SUBSYSTEM!="usb", GOTO="nut-usbups_rules_end"
|
||||
|
||||
LABEL="nut-usbups_rules_real"
|
||||
# ATCL FOR UPS - nutdrv_atcl_usb
|
||||
ATTR{idVendor}=="0001", ATTR{idProduct}=="0000", MODE="664", GROUP="root"
|
||||
|
||||
# Hewlett Packard
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="0001", MODE="664", GROUP="root"
|
||||
# T500 - bcmxcp_usb
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1f01", MODE="664", GROUP="root"
|
||||
# T750 - bcmxcp_usb
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1f02", MODE="664", GROUP="root"
|
||||
# HP T750 INTL - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1f06", MODE="664", GROUP="root"
|
||||
# HP T1000 INTL - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1f08", MODE="664", GROUP="root"
|
||||
# HP T1500 INTL - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1f09", MODE="664", GROUP="root"
|
||||
# HP R/T 2200 INTL (like SMART2200RMXL2U) - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1f0a", MODE="664", GROUP="root"
|
||||
# HP R1500 G2 and G3 INTL - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1fe0", MODE="664", GROUP="root"
|
||||
# HP T750 G2 - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1fe1", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1fe2", MODE="664", GROUP="root"
|
||||
# HP T1500 G3 - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1fe3", MODE="664", GROUP="root"
|
||||
# R/T3000 - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1fe5", MODE="664", GROUP="root"
|
||||
# R/T3000 - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1fe6", MODE="664", GROUP="root"
|
||||
# various models - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1fe7", MODE="664", GROUP="root"
|
||||
# various models - usbhid-ups
|
||||
ATTR{idVendor}=="03f0", ATTR{idProduct}=="1fe8", MODE="664", GROUP="root"
|
||||
|
||||
# Eaton
|
||||
# various models - usbhid-ups
|
||||
ATTR{idVendor}=="0463", ATTR{idProduct}=="0001", MODE="664", GROUP="root"
|
||||
# various models - usbhid-ups
|
||||
ATTR{idVendor}=="0463", ATTR{idProduct}=="ffff", MODE="664", GROUP="root"
|
||||
|
||||
# Dell
|
||||
# various models - usbhid-ups
|
||||
ATTR{idVendor}=="047c", ATTR{idProduct}=="ffff", MODE="664", GROUP="root"
|
||||
# TS Shara UPSes - nutdrv_qx
|
||||
ATTR{idVendor}=="0483", ATTR{idProduct}=="0035", MODE="664", GROUP="root"
|
||||
|
||||
# Riello (Cypress Semiconductor Corp.)
|
||||
# various models - riello_usb
|
||||
ATTR{idVendor}=="04b4", ATTR{idProduct}=="5500", MODE="664", GROUP="root"
|
||||
|
||||
# Minibox
|
||||
# openUPS Intelligent UPS (minimum required firmware 1.4) - usbhid-ups
|
||||
ATTR{idVendor}=="04d8", ATTR{idProduct}=="d004", MODE="664", GROUP="root"
|
||||
# openUPS Intelligent UPS (minimum required firmware 1.4) - usbhid-ups
|
||||
ATTR{idVendor}=="04d8", ATTR{idProduct}=="d005", MODE="664", GROUP="root"
|
||||
|
||||
# Belkin
|
||||
# F6H375-USB - usbhid-ups
|
||||
ATTR{idVendor}=="050d", ATTR{idProduct}=="0375", MODE="664", GROUP="root"
|
||||
# F6C550-AVR - usbhid-ups
|
||||
ATTR{idVendor}=="050d", ATTR{idProduct}=="0551", MODE="664", GROUP="root"
|
||||
# F6C1250-TW-RK - usbhid-ups
|
||||
ATTR{idVendor}=="050d", ATTR{idProduct}=="0750", MODE="664", GROUP="root"
|
||||
# F6C1500-TW-RK - usbhid-ups
|
||||
ATTR{idVendor}=="050d", ATTR{idProduct}=="0751", MODE="664", GROUP="root"
|
||||
# F6C900-UNV - usbhid-ups
|
||||
ATTR{idVendor}=="050d", ATTR{idProduct}=="0900", MODE="664", GROUP="root"
|
||||
# F6C100-UNV - usbhid-ups
|
||||
ATTR{idVendor}=="050d", ATTR{idProduct}=="0910", MODE="664", GROUP="root"
|
||||
# F6C120-UNV - usbhid-ups
|
||||
ATTR{idVendor}=="050d", ATTR{idProduct}=="0912", MODE="664", GROUP="root"
|
||||
# F6C800-UNV - usbhid-ups
|
||||
ATTR{idVendor}=="050d", ATTR{idProduct}=="0980", MODE="664", GROUP="root"
|
||||
# Regulator PRO-USB - usbhid-ups
|
||||
ATTR{idVendor}=="050d", ATTR{idProduct}=="0f51", MODE="664", GROUP="root"
|
||||
# F6C1100-UNV, F6C1200-UNV - usbhid-ups
|
||||
ATTR{idVendor}=="050d", ATTR{idProduct}=="1100", MODE="664", GROUP="root"
|
||||
|
||||
# APC
|
||||
# APC AP9584 Serial->USB kit - usbhid-ups
|
||||
ATTR{idVendor}=="051d", ATTR{idProduct}=="0000", MODE="664", GROUP="root"
|
||||
# various models - usbhid-ups
|
||||
ATTR{idVendor}=="051d", ATTR{idProduct}=="0002", MODE="664", GROUP="root"
|
||||
# various 5G models - usbhid-ups
|
||||
ATTR{idVendor}=="051d", ATTR{idProduct}=="0003", MODE="664", GROUP="root"
|
||||
ATTR{idVendor}=="051d", ATTR{idProduct}=="0004", MODE="664", GROUP="root"
|
||||
|
||||
# Powerware
|
||||
# various models - bcmxcp_usb
|
||||
ATTR{idVendor}=="0592", ATTR{idProduct}=="0002", MODE="664", GROUP="root"
|
||||
# PW 9140 - usbhid-ups
|
||||
ATTR{idVendor}=="0592", ATTR{idProduct}=="0004", MODE="664", GROUP="root"
|
||||
# Agiler UPS - blazer_usb
|
||||
ATTR{idVendor}=="05b8", ATTR{idProduct}=="0000", MODE="664", GROUP="root"
|
||||
# Belkin F6C1200-UNV - blazer_usb
|
||||
ATTR{idVendor}=="0665", ATTR{idProduct}=="5161", MODE="664", GROUP="root"
|
||||
|
||||
# Phoenixtec Power Co., Ltd
|
||||
# various models - bcmxcp_usb
|
||||
ATTR{idVendor}=="06da", ATTR{idProduct}=="0002", MODE="664", GROUP="root"
|
||||
# Mustek Powermust - blazer_usb
|
||||
ATTR{idVendor}=="06da", ATTR{idProduct}=="0003", MODE="664", GROUP="root"
|
||||
# Phoenixtec Innova 3/1 T - blazer_usb
|
||||
ATTR{idVendor}=="06da", ATTR{idProduct}=="0004", MODE="664", GROUP="root"
|
||||
# Phoenixtec Innova RT - blazer_usb
|
||||
ATTR{idVendor}=="06da", ATTR{idProduct}=="0005", MODE="664", GROUP="root"
|
||||
# Phoenixtec Innova T - blazer_usb
|
||||
ATTR{idVendor}=="06da", ATTR{idProduct}=="0201", MODE="664", GROUP="root"
|
||||
# Online Zinto A - blazer_usb
|
||||
ATTR{idVendor}=="06da", ATTR{idProduct}=="0601", MODE="664", GROUP="root"
|
||||
# various models - usbhid-ups
|
||||
ATTR{idVendor}=="06da", ATTR{idProduct}=="ffff", MODE="664", GROUP="root"
|
||||
|
||||
# iDowell
|
||||
# iDowell - usbhid-ups
|
||||
ATTR{idVendor}=="075d", ATTR{idProduct}=="0300", MODE="664", GROUP="root"
|
||||
|
||||
# Cyber Power Systems
|
||||
# 900AVR/BC900D - usbhid-ups
|
||||
ATTR{idVendor}=="0764", ATTR{idProduct}=="0005", MODE="664", GROUP="root"
|
||||
# Dynex DX-800U?, CP1200AVR/BC1200D, CP825AVR-G, CP1000AVRLCD, CP1000PFCLCD, CP1500C, CP550HG, etc. - usbhid-ups
|
||||
ATTR{idVendor}=="0764", ATTR{idProduct}=="0501", MODE="664", GROUP="root"
|
||||
# OR2200LCDRM2U, OR700LCDRM1U, PR6000LCDRTXL5U - usbhid-ups
|
||||
ATTR{idVendor}=="0764", ATTR{idProduct}=="0601", MODE="664", GROUP="root"
|
||||
# Sweex 1000VA - richcomm_usb
|
||||
ATTR{idVendor}=="0925", ATTR{idProduct}=="1234", MODE="664", GROUP="root"
|
||||
|
||||
# TrippLite
|
||||
# e.g. OMNIVS1000, SMART550USB, ... - tripplite_usb
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="0001", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite AVR550U - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="1003", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite AVR750U - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="1007", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite ECO550UPS - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="1008", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite ECO550UPS - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="1009", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite ECO550UPS - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="1010", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite OMNI1000LCD - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="2005", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite OMNI900LCD - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="2007", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="2008", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite Smart1000LCD - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="2009", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="2010", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="2011", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="2012", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="2013", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="2014", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="3008", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="3009", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="3010", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="3011", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite smart2200RMXL2U - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="3012", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="3013", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="3014", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="3015", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite Smart1500LCD (newer unit) - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="3016", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite SmartOnline SU1500RTXL2UA (older unit?) - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="4001", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite SmartOnline SU6000RT4U? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="4002", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite SmartOnline SU1500RTXL2ua - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="4003", MODE="664", GROUP="root"
|
||||
# e.g. TrippLite SmartOnline SU1000XLA - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="4004", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="4005", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="4006", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="4007", MODE="664", GROUP="root"
|
||||
# e.g. ? - usbhid-ups
|
||||
ATTR{idVendor}=="09ae", ATTR{idProduct}=="4008", MODE="664", GROUP="root"
|
||||
|
||||
# PowerCOM
|
||||
# PowerCOM Vanguard and BNT-xxxAP - usbhid-ups
|
||||
ATTR{idVendor}=="0d9f", ATTR{idProduct}=="0001", MODE="664", GROUP="root"
|
||||
# PowerCOM Vanguard and BNT-xxxAP - usbhid-ups
|
||||
ATTR{idVendor}=="0d9f", ATTR{idProduct}=="0004", MODE="664", GROUP="root"
|
||||
# PowerCOM IMP - IMPERIAL Series - usbhid-ups
|
||||
ATTR{idVendor}=="0d9f", ATTR{idProduct}=="00a2", MODE="664", GROUP="root"
|
||||
# PowerCOM SKP - Smart KING Pro (all Smart series) - usbhid-ups
|
||||
ATTR{idVendor}=="0d9f", ATTR{idProduct}=="00a3", MODE="664", GROUP="root"
|
||||
# PowerCOM WOW - usbhid-ups
|
||||
ATTR{idVendor}=="0d9f", ATTR{idProduct}=="00a4", MODE="664", GROUP="root"
|
||||
# PowerCOM VGD - Vanguard - usbhid-ups
|
||||
ATTR{idVendor}=="0d9f", ATTR{idProduct}=="00a5", MODE="664", GROUP="root"
|
||||
# PowerCOM BNT - Black Knight Pro - usbhid-ups
|
||||
ATTR{idVendor}=="0d9f", ATTR{idProduct}=="00a6", MODE="664", GROUP="root"
|
||||
# Unitek Alpha 1200Sx - blazer_usb
|
||||
ATTR{idVendor}=="0f03", ATTR{idProduct}=="0001", MODE="664", GROUP="root"
|
||||
|
||||
# Liebert
|
||||
# Liebert PowerSure PSA UPS - usbhid-ups
|
||||
ATTR{idVendor}=="10af", ATTR{idProduct}=="0001", MODE="664", GROUP="root"
|
||||
# Liebert PowerSure PSI 1440 - usbhid-ups
|
||||
ATTR{idVendor}=="10af", ATTR{idProduct}=="0004", MODE="664", GROUP="root"
|
||||
# Liebert GXT3 - usbhid-ups
|
||||
ATTR{idVendor}=="10af", ATTR{idProduct}=="0008", MODE="664", GROUP="root"
|
||||
# GE EP series - blazer_usb
|
||||
ATTR{idVendor}=="14f0", ATTR{idProduct}=="00c9", MODE="664", GROUP="root"
|
||||
|
||||
# AEG
|
||||
# PROTECT B / NAS - usbhid-ups
|
||||
ATTR{idVendor}=="2b2d", ATTR{idProduct}=="ffff", MODE="664", GROUP="root"
|
||||
# Ablerex 625L USB - blazer_usb
|
||||
ATTR{idVendor}=="ffff", ATTR{idProduct}=="0000", MODE="664", GROUP="root"
|
||||
|
||||
LABEL="nut-usbups_rules_end"
|
1
eudev/src/99-qed.rules
Normal file
1
eudev/src/99-qed.rules
Normal file
@ -0,0 +1 @@
|
||||
SUBSYSTEM=="pci", DRIVER=="qed*", ACTION=="change", ENV{QED_DEBUGFS_BDF_DBG}=="?*", RUN+="/lib/udev/qed_udev_dbg.sh"
|
5
eudev/src/99-qedstor.rules
Normal file
5
eudev/src/99-qedstor.rules
Normal file
@ -0,0 +1,5 @@
|
||||
#
|
||||
# RULES FILE: located in /etc/udev/rules.d/
|
||||
#
|
||||
# qedstor drivers
|
||||
SUBSYSTEMS=="pci", ATTRS{class}=="0x020000", ACTION=="change", RUN+="qedstor_udev.sh"
|
46
eudev/src/99-usb-realtek-net.rules
Normal file
46
eudev/src/99-usb-realtek-net.rules
Normal file
@ -0,0 +1,46 @@
|
||||
# This is used to change the default configuration of Realtek USB ethernet adapters
|
||||
|
||||
ACTION!="add", GOTO="usb_realtek_net_end"
|
||||
SUBSYSTEM!="usb", GOTO="usb_realtek_net_end"
|
||||
ENV{DEVTYPE}!="usb_device", GOTO="usb_realtek_net_end"
|
||||
|
||||
# Modify this to change the default value
|
||||
ENV{REALTEK_MODE1}="1"
|
||||
ENV{REALTEK_MODE2}="3"
|
||||
|
||||
# Realtek
|
||||
ATTR{idVendor}=="0bda", ATTR{idProduct}=="815[2,3,5,6]", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="0bda", ATTR{idProduct}=="8053", ATTR{bcdDevice}=="e???", ATTR{bConfigurationValue}!="$env{REALTEK_MODE2}", ATTR{bConfigurationValue}="$env{REALTEK_MODE2}"
|
||||
|
||||
# Samsung
|
||||
ATTR{idVendor}=="04e8", ATTR{idProduct}=="a101", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
|
||||
# Lenovo
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="304f", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="3052", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="3054", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="3057", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="3062", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="3069", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="3082", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="3098", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="7205", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="720a", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="720b", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="720c", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="7214", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="721e", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="8153", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="a359", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
ATTR{idVendor}=="17ef", ATTR{idProduct}=="a387", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
|
||||
# TP-LINK
|
||||
ATTR{idVendor}=="2357", ATTR{idProduct}=="0601", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
|
||||
# Nvidia
|
||||
ATTR{idVendor}=="0955", ATTR{idProduct}=="09ff", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
|
||||
# LINKSYS
|
||||
ATTR{idVendor}=="13b1", ATTR{idProduct}=="0041", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
||||
|
||||
LABEL="usb_realtek_net_end"
|
5
eudev/src/README.md
Normal file
5
eudev/src/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
1. kmod.patch: https://raw.githubusercontent.com/fbelavenuto/arpl-addons/v2.50/eudev/src/kmod.patch
|
||||
|
||||
2. 50-usb-realtek-net.rules: https://www.realtek.com/zh/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software
|
||||
|
||||
3. 80-net-name-slot.rules: Incompatible with synology system
|
90
eudev/src/kmod.patch
Normal file
90
eudev/src/kmod.patch
Normal file
@ -0,0 +1,90 @@
|
||||
diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c
|
||||
index 7c2b889..de8d8fd 100644
|
||||
--- a/libkmod/libkmod.c
|
||||
+++ b/libkmod/libkmod.c
|
||||
@@ -221,7 +221,7 @@ static char *get_kernel_release(const char *dirname)
|
||||
if (uname(&u) < 0)
|
||||
return NULL;
|
||||
|
||||
- if (asprintf(&p, "%s/%s", dirname_default_prefix, u.release) < 0)
|
||||
+ if (asprintf(&p, "%s", dirname_default_prefix) < 0)
|
||||
return NULL;
|
||||
|
||||
return p;
|
||||
diff --git a/tools/depmod.c b/tools/depmod.c
|
||||
index 364b7d4..d9f9566 100644
|
||||
--- a/tools/depmod.c
|
||||
+++ b/tools/depmod.c
|
||||
@@ -906,7 +906,7 @@ struct vertex;
|
||||
struct mod {
|
||||
struct kmod_module *kmod;
|
||||
char *path;
|
||||
- const char *relpath; /* path relative to '$ROOT/lib/modules/$VER/' */
|
||||
+ const char *relpath; /* path relative to '$ROOT/lib/modules' */
|
||||
char *uncrelpath; /* same as relpath but ending in .ko */
|
||||
struct kmod_list *info_list;
|
||||
struct kmod_list *dep_sym_list;
|
||||
@@ -3008,8 +3008,8 @@ static int do_depmod(int argc, char *argv[])
|
||||
}
|
||||
|
||||
cfg.dirnamelen = snprintf(cfg.dirname, PATH_MAX,
|
||||
- "%s/lib/modules/%s",
|
||||
- root == NULL ? "" : root, cfg.kversion);
|
||||
+ "%s/lib/modules",
|
||||
+ root == NULL ? "" : root);
|
||||
|
||||
if (optind == argc)
|
||||
all = 1;
|
||||
diff --git a/tools/modinfo.c b/tools/modinfo.c
|
||||
index d0aab20..05b8fbe 100644
|
||||
--- a/tools/modinfo.c
|
||||
+++ b/tools/modinfo.c
|
||||
@@ -462,8 +462,8 @@ static int do_modinfo(int argc, char *argv[])
|
||||
}
|
||||
kversion = u.release;
|
||||
}
|
||||
- snprintf(dirname_buf, sizeof(dirname_buf), "%s/lib/modules/%s",
|
||||
- root, kversion);
|
||||
+ snprintf(dirname_buf, sizeof(dirname_buf), "%s/lib/modules",
|
||||
+ root);
|
||||
dirname = dirname_buf;
|
||||
}
|
||||
|
||||
diff --git a/tools/modprobe.c b/tools/modprobe.c
|
||||
index 2a2ae21..6f9c99e 100644
|
||||
--- a/tools/modprobe.c
|
||||
+++ b/tools/modprobe.c
|
||||
@@ -970,8 +970,7 @@ static int do_modprobe(int argc, char **orig_argv)
|
||||
kversion = u.release;
|
||||
}
|
||||
snprintf(dirname_buf, sizeof(dirname_buf),
|
||||
- "%s/lib/modules/%s", root,
|
||||
- kversion);
|
||||
+ "%s/lib/modules", root);
|
||||
dirname = dirname_buf;
|
||||
}
|
||||
|
||||
diff --git a/tools/static-nodes.c b/tools/static-nodes.c
|
||||
index 8d2356d..6190e8d 100644
|
||||
--- a/tools/static-nodes.c
|
||||
+++ b/tools/static-nodes.c
|
||||
@@ -212,16 +212,14 @@ static int do_static_nodes(int argc, char *argv[])
|
||||
goto finish;
|
||||
}
|
||||
|
||||
- snprintf(modules, sizeof(modules), "/lib/modules/%s/modules.devname", kernel.release);
|
||||
+ snprintf(modules, sizeof(modules), "/lib/modules/modules.devname");
|
||||
in = fopen(modules, "re");
|
||||
if (in == NULL) {
|
||||
if (errno == ENOENT) {
|
||||
- fprintf(stderr, "Warning: /lib/modules/%s/modules.devname not found - ignoring\n",
|
||||
- kernel.release);
|
||||
+ fprintf(stderr, "Warning: /lib/modules/modules.devname not found - ignoring\n");
|
||||
ret = EXIT_SUCCESS;
|
||||
} else {
|
||||
- fprintf(stderr, "Error: could not open /lib/modules/%s/modules.devname - %m\n",
|
||||
- kernel.release);
|
||||
+ fprintf(stderr, "Error: could not open /lib/modules/modules.devname - %m\n");
|
||||
ret = EXIT_FAILURE;
|
||||
}
|
||||
goto finish;
|
Loading…
Reference in New Issue
Block a user