linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev not running new rules
@ 2007-08-12 13:58 Peter Gordon
  2007-08-12 14:10 ` Marco d'Itri
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Peter Gordon @ 2007-08-12 13:58 UTC (permalink / raw)
  To: linux-hotplug


I am using Debian Etch.

I have the directory in /etc/udev/rules.d

lrwxrwxrwx 1 root root   20 2007-06-19 16:52 020_permissions.rules -> ../permissions.rules
lrwxrwxrwx 1 root root   13 2007-06-19 16:52 udev.rules -> ../udev.rules
-rwxr-xr-x 1 root root  138 2007-07-29 14:28 z19_persistent-anet.rules
lrwxrwxrwx 1 root root   25 2007-06-19 16:52 z20_persistent-input.rules -> ../persistent-input.rules
lrwxrwxrwx 1 root root   19 2007-06-19 16:52 z20_persistent.rules -> ../persistent.rules
-rw-r--r-- 1 root root 1070 2007-06-19 17:09 z25_persistent-cd.rules
lrwxrwxrwx 1 root root   23 2007-06-26 00:57 z25_persistent-net.rules -> ../persistent-net.rules
lrwxrwxrwx 1 root root   12 2007-06-19 16:52 z50_run.rules -> ../run.rules
lrwxrwxrwx 1 root root   16 2007-06-19 16:52 z55_hotplug.rules -> ../hotplug.rules
lrwxrwxrwx 1 root root   29 2007-06-19 16:52 z75_cd-aliases-generator.rules -> ../cd-aliases-generator.rules

Initially, the file ../persistent-net.rules does not exist.

The rule z19_persistent-anet.rules is:

PROGRAM="/var/www/lib/produce_persistent_rules.pl"

The object of the program is to rename one of the NICs, and simply produces a rule
SUBSYSTEMS="pci", KERNELS="0000:09:01.0", NAME="ctl"

It runs a Perl program that creates the file ../persistent-net.rules.

After a reboot, the file is created, but udev claims that it doesn't exist.

After a second reboot, udev manages to read the file successfully.

Killing udev and restarting doesn't help.

It seems that udev firstly checks which files exist. How can I get the new rule set to be run as soon as it is created?

Thanks,

Peter






-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-08-13 11:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-12 13:58 udev not running new rules Peter Gordon
2007-08-12 14:10 ` Marco d'Itri
2007-08-12 14:19 ` Kay Sievers
2007-08-12 19:03 ` Peter Gordon
2007-08-12 19:28 ` Kay Sievers
2007-08-12 19:39 ` Peter Gordon
2007-08-13  7:06 ` Gerald V. Livingston II
2007-08-13 11:09 ` Bryan Kadzban
2007-08-13 11:38 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).