udev rule voor /dev/ttyUSBx

Pagina: 1
Acties:

Vraag


  • bucovaina89
  • Registratie: Juli 2010
  • Laatst online: 29-04 20:53
Ik zit wat in de knoei met udev rules. Ik heb 2 P1 poort naar USB converters en 1 modbus naar USB converters aan mijn RPI4 hangen. Elke boot hebben de converters allemaal een random device name van /dev/ttyUSB0../dev/ttyUSB2 wat erg vervelend is. Dat probeer ik nu op te lossen door een udev rule aan te maken alsvolgt:
code:
1
2
3
SUBSYSTEM=="usb", ATTRS{bcdDevice}=="0263", SYMLINK+="modbus", OWNER="telegraf", GROUP="root"
SUBSYSTEM=="usb", ATTRS{serial}=="AB6BZJJJ", SYMLINK+="p1-homeassistant", OWNER="telegraf", GROUP="root"
SUBSYSTEM=="usb", ATTRS{serial}=="AB6C1MBS", SYMLINK+="p1-python2influxdb", OWNER="telegraf", GROUP="root"


code:
1
2
3
4
5
root@stats:~# ls -lah /dev/modbus 
lrwxrwxrwx 1 root root 15 Aug 25 15:45 /dev/modbus -> bus/usb/001/003
root@stats:~# ls -lah /dev/ttyUSB2 
crw-rw---- 1 telegraf telegraf 188, 2 Aug 25 15:59 /dev/ttyUSB2
root@stats:~#


Als ik dan telegraf herstart en ipv naar /dev/ttyUSB2 laat verwijzen maar naar /dev/modbus dan krijg ik volgende in de log file:

code:
1
2
3
4
5
6
7
8
9
10
11
root@stats:~# tail -f /var/log/telegraf/telegraf
2022-08-25T16:00:36+02:00 E! [inputs.modbus] Error in plugin: serial: could not set setting: inappropriate ioctl for device
2022-08-25T16:00:38+02:00 E! [inputs.modbus] Error in plugin: serial: could not set setting: inappropriate ioctl for device
2022-08-25T16:00:40+02:00 E! [inputs.modbus] Error in plugin: serial: could not set setting: inappropriate ioctl for device
2022-08-25T16:00:42+02:00 E! [inputs.modbus] Error in plugin: serial: could not set setting: inappropriate ioctl for device
2022-08-25T16:00:44+02:00 E! [inputs.modbus] Error in plugin: serial: could not set setting: inappropriate ioctl for device
2022-08-25T16:00:46+02:00 E! [inputs.modbus] Error in plugin: serial: could not set setting: inappropriate ioctl for device
2022-08-25T16:00:48+02:00 E! [inputs.modbus] Error in plugin: serial: could not set setting: inappropriate ioctl for device
2022-08-25T16:00:50+02:00 E! [inputs.modbus] Error in plugin: serial: could not set setting: inappropriate ioctl for device
2022-08-25T16:00:52+02:00 E! [inputs.modbus] Error in plugin: serial: could not set setting: inappropriate ioctl for device
2022-08-25T16:00:54+02:00 E! [inputs.modbus] Error in plugin: serial: could not set setting: inappropriate ioctl for device


Ah ja /dev/modbus verwijst naar het relatieve pad bus/usb/001/003 .

Dus nu is mijn vraag, hoe laat ik /dev/ttyUSB2 "verdwijnen" of hoe zorg ik ervoor dat die niet meer wordt aangemaakt maar dat gewoon /dev/modbus wordt aangemaakt zonder dat dat een symlink is?

EDIT:
En als ik Home Assistant de digitale meter wil laten uitlezen op /dev/p1-homeassistant werkt dat niet. Op /dev/ttyUSB1 werkt het wel... .

Alle reacties


  • bucovaina89
  • Registratie: Juli 2010
  • Laatst online: 29-04 20:53
En nog een kleine toevoeging. Als ik de modbus controller probeer uit te lezen met mbpoll op /dev/ttyUSB2, no problemo. Maar op /dev/modbus wel alsook /dev/usb/00*/00* (ik heb ze allemaal geprobeerd)

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
pi@stats:~/ansilbe $ ls -lah /dev/modbus 
lrwxrwxrwx 1 root root 15 Aug 25 16:14 /dev/modbus -> bus/usb/001/003
pi@stats:~/ansilbe $ sudo mbpoll -q  -a 1 -b 38400 -t 3 -c 6 -o 2 /dev/bus/usb/001/003 -r 122
mbpoll: Connection failed: Connection refused.
pi@stats:~/ansilbe $ sudo mbpoll -q  -a 1 -b 38400 -t 3 -c 6 -o 2 /dev/ttyUSB2 -r 122
-- Polling slave 1... Ctrl-C to stop)
[122]:  2
[123]:  0
[124]:  4
[125]:  0
[126]:  71
[127]:  24
^C--- /dev/ttyUSB2 poll statistics ---
1 frames transmitted, 1 received, 0 errors, 0.0% frame loss

everything was closed.
Have a nice day !
pi@stats:~/ansilbe $ sudo mbpoll -q  -a 1 -b 38400 -t 3 -c 6 -o 2 /dev/bus/usb/00 -r 122
001/ 002/ 
pi@stats:~/ansilbe $ ls -lah /dev/bus/usb/00*/*
crw-rw-r-- 1 root     root 189,   0 Aug 25 16:14 /dev/bus/usb/001/001
crw-rw-r-- 1 root     root 189,   1 Aug 25 16:14 /dev/bus/usb/001/002
crwxrwxrwx 1 telegraf root 189,   2 Aug 25 16:14 /dev/bus/usb/001/003
crw-rw-r-- 1 telegraf root 189,   3 Aug 25 16:14 /dev/bus/usb/001/004
crw-rw-r-- 1 telegraf root 189,   4 Aug 25 16:14 /dev/bus/usb/001/005
crw-rw-r-- 1 root     root 189, 128 Aug 25 16:14 /dev/bus/usb/002/001
crw-rw-r-- 1 root     root 189, 129 Aug 25 16:14 /dev/bus/usb/002/002
pi@stats:~/ansilbe $

  • Daedalus
  • Registratie: Mei 2002
  • Niet online

Daedalus

Moderator Apple Talk

Keep tryin'

Vermoed dat het SUBSYSTEM=="tty" moet zijn. Je wilt een serial device, en niet de rauwe (bovenliggende) USB device. Zie ook Persistent names for USB-serial devices in Linux (/dev/ttyUSBx -> /dev/custom-name).

“You know what I've noticed Hobbes? Things don't bug you if you don't think about them. So from now on, I simply won't think about anything I don't like, and I'll be happy all the time!” | 宇多田ヒカル \o/


  • bucovaina89
  • Registratie: Juli 2010
  • Laatst online: 29-04 20:53
Klinkt idd wel logisch. Het ziet er wat mij betreft al iets beter uit maar het werkt nog niet ... . Met /dev/ttyUSB2 werkt het wel.
code:
1
2
3
4
5
pi@stats:~/ansilbe $ sudo mbpoll -q  -a 1 -b 38400 -t 3 -c 6 -o 2 /dev/modbus -r 122
mbpoll: Connection failed: Connection refused.
pi@stats:~/ansilbe $ ls -lah /dev/modbus 
lrwxrwxrwx 1 root root 7 Aug 25 17:13 /dev/modbus -> ttyUSB2
pi@stats:~/ansilbe $

  • Daedalus
  • Registratie: Mei 2002
  • Niet online

Daedalus

Moderator Apple Talk

Keep tryin'

Wat zijn je udev rules nu, want de owner/group van de rules in de TS komt niet overeen met wat je nu hebt (root:root, en niet telegraf:root). Heb je ook rules herladen (sudo udevadm control --reload-rules && sudo udevadm trigger), of gereboot?

[ Voor 29% gewijzigd door Daedalus op 25-08-2022 17:25 ]

“You know what I've noticed Hobbes? Things don't bug you if you don't think about them. So from now on, I simply won't think about anything I don't like, and I'll be happy all the time!” | 宇多田ヒカル \o/


  • bucovaina89
  • Registratie: Juli 2010
  • Laatst online: 29-04 20:53
deze heb ik nu gedefinieerd. Voor de rest is de udev config "vanilla"
code:
1
2
3
4
5
root@stats:~# cat /etc/udev/rules.d/serial-converters.rules 
SUBSYSTEM=="tty", ATTRS{bcdDevice}=="0263", SYMLINK+="modbus", OWNER="telegraf", GROUP="root"
SUBSYSTEM=="tty", ATTRS{serial}=="AB6BZJJJ", SYMLINK+="p1-homeassistant", OWNER="telegraf", GROUP="root"
SUBSYSTEM=="tty", ATTRS{serial}=="AB6C1MBS", SYMLINK+="p1-python2influxdb", OWNER="telegraf", GROUP="root"
root@stats:~#

  • bucovaina89
  • Registratie: Juli 2010
  • Laatst online: 29-04 20:53
en misschien is deze info ook nog handig:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
root@stats:~# udevadm info -a -n /dev/ttyUSB2 

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/ttyUSB2/tty/ttyUSB2':
    KERNEL=="ttyUSB2"
    SUBSYSTEM=="tty"
    DRIVER==""
    ATTR{power/control}=="auto"
    ATTR{power/runtime_active_time}=="0"
    ATTR{power/runtime_status}=="unsupported"
    ATTR{power/runtime_suspended_time}=="0"

  looking at parent device '/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/ttyUSB2':
    KERNELS=="ttyUSB2"
    SUBSYSTEMS=="usb-serial"
    DRIVERS=="ch341-uart"
    ATTRS{port_number}=="0"
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_time}=="0"
    ATTRS{power/runtime_status}=="unsupported"
    ATTRS{power/runtime_suspended_time}=="0"

  looking at parent device '/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0':
    KERNELS=="1-1.1:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="ch341"
    ATTRS{authorized}=="1"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceClass}=="ff"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bInterfaceProtocol}=="02"
    ATTRS{bInterfaceSubClass}=="01"
    ATTRS{bNumEndpoints}=="03"
    ATTRS{supports_autosuspend}=="1"

  looking at parent device '/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1':
    KERNELS=="1-1.1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="ff"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="8"
    ATTRS{bMaxPower}=="98mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0263"
    ATTRS{bmAttributes}=="80"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="3"
    ATTRS{devpath}=="1.1"
    ATTRS{devspec}=="(null)"
    ATTRS{idProduct}=="7523"
    ATTRS{idVendor}=="1a86"
    ATTRS{ltm_capable}=="no"
    ATTRS{maxchild}=="0"
    ATTRS{power/active_duration}=="437370850"
    ATTRS{power/autosuspend}=="2"
    ATTRS{power/autosuspend_delay_ms}=="2000"
    ATTRS{power/connected_duration}=="437370840"
    ATTRS{power/control}=="on"
    ATTRS{power/level}=="on"
    ATTRS{power/persist}=="1"
    ATTRS{power/runtime_active_time}=="437370616"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{product}=="USB2.0-Serial"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{rx_lanes}=="1"
    ATTRS{speed}=="12"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="893468"
    ATTRS{version}==" 1.10"

  looking at parent device '/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1':
    KERNELS=="1-1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="100mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0421"
    ATTRS{bmAttributes}=="e0"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="2"
    ATTRS{devpath}=="1"
    ATTRS{devspec}=="(null)"
    ATTRS{idProduct}=="3431"
    ATTRS{idVendor}=="2109"
    ATTRS{ltm_capable}=="no"
    ATTRS{maxchild}=="4"
    ATTRS{power/active_duration}=="437371410"
    ATTRS{power/autosuspend}=="0"
    ATTRS{power/autosuspend_delay_ms}=="0"
    ATTRS{power/connected_duration}=="437371410"
    ATTRS{power/control}=="auto"
    ATTRS{power/level}=="auto"
    ATTRS{power/runtime_active_time}=="437371087"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{product}=="USB2.0 Hub"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{rx_lanes}=="1"
    ATTRS{speed}=="480"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="48"
    ATTRS{version}==" 2.10"

  looking at parent device '/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{authorized_default}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="0mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0515"
    ATTRS{bmAttributes}=="e0"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="1"
    ATTRS{devpath}=="0"
    ATTRS{idProduct}=="0002"
    ATTRS{idVendor}=="1d6b"
    ATTRS{interface_authorized_default}=="1"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="Linux 5.15.56-v7l+ xhci-hcd"
    ATTRS{maxchild}=="1"
    ATTRS{power/active_duration}=="437371570"
    ATTRS{power/autosuspend}=="0"
    ATTRS{power/autosuspend_delay_ms}=="0"
    ATTRS{power/connected_duration}=="437371580"
    ATTRS{power/control}=="auto"
    ATTRS{power/level}=="auto"
    ATTRS{power/runtime_active_time}=="437371571"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{product}=="xHCI Host Controller"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{rx_lanes}=="1"
    ATTRS{serial}=="0000:01:00.0"
    ATTRS{speed}=="480"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="22"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0':
    KERNELS=="0000:01:00.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="xhci_hcd"
    ATTRS{ari_enabled}=="0"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x0c0330"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{current_link_speed}=="5.0 GT/s PCIe"
    ATTRS{current_link_width}=="1"
    ATTRS{device}=="0x3483"
    ATTRS{dma_mask_bits}=="64"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="78"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{local_cpus}=="f"
    ATTRS{max_link_speed}=="5.0 GT/s PCIe"
    ATTRS{max_link_width}=="1"
    ATTRS{msi_bus}=="1"
    ATTRS{msi_irqs/78}=="msi"
    ATTRS{power/control}=="on"
    ATTRS{power/runtime_active_time}=="437371746"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power_state}=="D0"
    ATTRS{reset_method}=="pm bus"
    ATTRS{revision}=="0x01"
    ATTRS{subsystem_device}=="0x3483"
    ATTRS{subsystem_vendor}=="0x1106"
    ATTRS{vendor}=="0x1106"

  looking at parent device '/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0':
    KERNELS=="0000:00:00.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="pcieport"
    ATTRS{ari_enabled}=="0"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x060400"
    ATTRS{consistent_dma_mask_bits}=="32"
    ATTRS{current_link_speed}=="5.0 GT/s PCIe"
    ATTRS{current_link_width}=="1"
    ATTRS{device}=="0x2711"
    ATTRS{dma_mask_bits}=="32"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="77"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{local_cpus}=="f"
    ATTRS{max_link_speed}=="5.0 GT/s PCIe"
    ATTRS{max_link_width}=="1"
    ATTRS{msi_bus}=="1"
    ATTRS{power/control}=="on"
    ATTRS{power/runtime_active_time}=="437371755"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power_state}=="D0"
    ATTRS{revision}=="0x10"
    ATTRS{secondary_bus_number}=="1"
    ATTRS{subordinate_bus_number}=="1"
    ATTRS{subsystem_device}=="0x0000"
    ATTRS{subsystem_vendor}=="0x0000"
    ATTRS{vendor}=="0x14e4"

  looking at parent device '/devices/platform/scb/fd500000.pcie/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_time}=="0"
    ATTRS{power/runtime_status}=="unsupported"
    ATTRS{power/runtime_suspended_time}=="0"

  looking at parent device '/devices/platform/scb/fd500000.pcie':
    KERNELS=="fd500000.pcie"
    SUBSYSTEMS=="platform"
    DRIVERS=="brcm-pcie"
    ATTRS{driver_override}=="(null)"
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_time}=="0"
    ATTRS{power/runtime_status}=="unsupported"
    ATTRS{power/runtime_suspended_time}=="0"

  looking at parent device '/devices/platform/scb':
    KERNELS=="scb"
    SUBSYSTEMS=="platform"
    DRIVERS=="simple-pm-bus"
    ATTRS{driver_override}=="(null)"
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_time}=="0"
    ATTRS{power/runtime_status}=="unsupported"
    ATTRS{power/runtime_suspended_time}=="0"

  looking at parent device '/devices/platform':
    KERNELS=="platform"
    SUBSYSTEMS==""
    DRIVERS==""
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_time}=="0"
    ATTRS{power/runtime_status}=="unsupported"
    ATTRS{power/runtime_suspended_time}=="0"

root@stats:~#


en een vimdiff van beide P1 naar usb adapters en de modbus naar usb adapterAfbeeldingslocatie: https://tweakers.net/i/zUBhyzbBEYVJhNveIO2jh--4UIA=/800x/filters:strip_exif()/f/image/obnXtahV1KDSyD28q5qBRTsH.png?f=fotoalbum_large

  • deHakkelaar
  • Registratie: Februari 2015
  • Laatst online: 27-07-2024
bucovaina89 schreef op donderdag 25 augustus 2022 @ 16:03:
Dus nu is mijn vraag, hoe laat ik /dev/ttyUSB2 "verdwijnen" of hoe zorg ik ervoor dat die niet meer wordt aangemaakt maar dat gewoon /dev/modbus wordt aangemaakt zonder dat dat een symlink is?
Probeer eens SYMLINK= ipv SYMLINK+= :
$ man udev
[..]
   Operators
       "=="
           Compare for equality.

       "!="
           Compare for inequality.

       "="
           Assign a value to a key. Keys that represent a list are reset
           and only this single value is assigned.

       "+="
           Add the value to a key that holds a list of entries.

       "-="
           Remove the value from a key that holds a list of entries.

       ":="
           Assign a value to a key finally; disallow any later changes.

Als ik de naam wil wijzigen van bv een netwerk interface naar wlan0 doe ik onderstaande:
code:
1
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c4:e9:84:XX:XX:XX", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="wlan0"

Misschien dat je daar wat aan hebt?

There are only 10 types of people in the world: those who understand binary, and those who don't

Pagina: 1