You are not logged in.

#1 2012-07-04 14:34:57

shohart
Member
Registered: 2011-05-19
Posts: 39

No udev rules?

Hello, everyone
i have udev rule put in the /etc/udev/rules.d named 70-alfa-add.rules

KERNEL=="wlan*", SUBSYSTEM=="usb", ACTION=="add", ATTR{address}=="00:C0:CA:57:10:B5", NAME="alfa"

and it does not work. as i plug my usb device in, interface name does not change...

if i gave another command instead of renaming like

KERNEL=="wlan*", SUBSYSTEM=="usb", ACTION=="add", ATTR{address}=="00:C0:CA:57:10:B5", RUN+="/usr/bin/fakemac"

my /usr/bin/fakemac script is following:

#!/bin/bash
##
/sbin/ifconfig wlan1 down
/usr/bin/macchanger -A wlan1
/sbin/ifconfig wlan1 up

but it is not working again, so i assume my udev is broken somehow... and do not see my rules
can anyone help me with this?

Offline

#2 2012-07-04 14:37:56

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: No udev rules?

Your address string should be in lower-case, not upper-case.

Offline

#3 2012-07-04 15:09:27

shohart
Member
Registered: 2011-05-19
Posts: 39

Re: No udev rules?

brebs wrote:

Your address string should be in lower-case, not upper-case.

KERNEL=="wlan*", SUBSYSTEM=="usb", ACTION=="add", SYSFS{address}=="00:c0:ca:57:10:b5", RUN+="/usr/bin/fakemac"

same issue.

Offline

#4 2012-07-04 15:48:50

shohart
Member
Registered: 2011-05-19
Posts: 39

Re: No udev rules?

as should be predicted - it os all my fault.
udevadm info -a -p /sys/class/net/wlan1 gave SUBSYSTEM=="net"

feels so dumb now. sorry guys for bothering...

Offline

#5 2012-07-04 16:03:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,507
Website

Re: No udev rules?

I've contributed many reports to the PEBKAC bug repository - we all do.

If it is working now please mark the thread as [SOLVED].


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB