1
0
mirror of https://github.com/rancher/os.git synced 2025-09-13 13:39:53 +00:00

Add modemmanager udev rules

This commit is contained in:
Jason-ZW
2018-12-05 10:57:42 +08:00
parent 9f59d22131
commit 4d72f2a421
22 changed files with 1303 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
# On Dell PowerEdge systems, the iDRAC7 and later support a USB Virtual NIC
# which terminates in the iDRAC. Help identify this with 'idrac'
ACTION=="add", SUBSYSTEM=="net", SUBSYSTEMS=="usb", ATTRS{idVendor}=="413c", ATTRS{idProduct}=="a102", NAME="idrac"
# ibmveth devices' $DEVPATH number is tied to (virtual) hardware (slot id
# selected in the HMC), thus this provides a reliable naming (e. g.
# "/devices/vio/30000002/net/eth1"); we ignore the bus number, as
# there should only ever be one bus, and then remove leading zeros
ACTION=="add", SUBSYSTEM=="net", NAME=="", DRIVERS=="ibmveth", PROGRAM="/bin/sh -ec 'D=${DEVPATH#*/vio/}; D=${D%%%%/*}; D=${D#????}; D=${D#0}; D=${D#0}; D=${D#0}; D=${D#0}; echo ${D:-0}'", NAME="ibmveth$result"