summaryrefslogtreecommitdiff
path: root/extras/rule_generator
AgeCommit message (Collapse)Author
2008-12-22rule_generator: fix enumeration for write_cd_rulesHarald Hoyer
quote +, as it would be taken as a part of the regexp otherwise https://bugzilla.redhat.com/show_bug.cgi?id=477535
2008-12-06make: do not delete autotools generated file with distcleanKay Sievers
[...] running the command `make maintainer-clean' should not delete `configure' even if `configure' can be remade using a rule in the Makefile. More generally, `make maintainer-clean' should not delete anything that needs to exist in order to run `configure' and then begin to build the program. This is the only exception; `maintainer-clean' should delete everything else that can be rebuilt.
2008-10-23rule_generator: fix netif NAME= value extraction regexKay Sievers
$ sed -n -r \ -e 's/^#.*//' \ -e 's/[[:space:],]NAME="(eth[0-9]*)"[[:space:]]*(,.*|\\|)$/\1/p' \ /dev/null /etc/udev/rules.d/70-persistent-net.rules SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:16:41:e2:8d:c7", ATTR{type}=="1", KERNEL=="eth*",eth4 $ sed -n -r \ -e 's/^#.*//' \ -e 's/.*[[:space:],]NAME="(eth[0-9]*)".*/\1/p' \ /dev/null /etc/udev/rules.d/70-persistent-net.rules eth4
2008-10-01build: include Makefile.am.inc in all Makefile.amKay Sievers
Many thanks to Chris Spiegel for finding the still current vol_id non-large-file-access bug, because of not including config.h.
2008-07-30use autotoolsKay Sievers
2008-07-30delete all Makefiles and move udev source to udev/Kay Sievers
2008-07-18move default rules from /etc/udev/rules.d/ to /lib/udev/rules.d/Kay Sievers
None of these rules is supposed to be changed by users, so move them out of /etc. Custom rules, and automatically generated rules stay in /etc. All rules are still processed in lexical order, regardless which directory they live in.
2008-07-07rules_generator: net rules - do not print error if file is missing and ↵Marco d'Itri
ignore commented rules Fix an error message displayed by write_net_rules when the rules file does not exist yet. (See Debian bugs #442796 and #475699.) Ignore commented rules, at least for the easy case. For clarity, use extended instead of standard regular expressions.
2008-05-26rules: persistent net - handle "locally administered" ibmveth MAC addressesKay Sievers
2008-04-27rules_generator: net rules - add "dev_id" value to generated rulesDavid Woodhouse
2008-04-15rules_generator: net rules - always add KERNEL== match to generated rulesKay Sievers
2008-03-15Makefile: do not require GNU installRoy Marples
2008-03-13rules_generator: add KERNEL=="<netifname>*" to generated rulesKay Sievers
Some boxes, like the PS3, have multiple independent hardware interfaces, all sharing the same MAC address. If they have different interface names base names, we can distinguish them that way.
2007-12-31rules_generator: add missing write_net_rules unlockJiri Slaby
2007-11-20rules_generator: do not create rules with insufficient matchesKay Sievers
Thanks to Alexander E. Patrakov for pointing out that we create invalid rules. We still need a proper fix for devices we skip creating rules (locally administered MAC), but want to swap names with interface names we created rules for.
2007-09-25rule_generator: always match netif type in generated ruleKay Sievers
2007-09-21rule_generator: move all policy from write_net_rules to the rules fileKay Sievers
2007-08-21rule_generator: fix wrong DRIVERS!= logicKay Sievers
Thanks to Matthias for identifying that.
2007-08-07rules_generator: fix write_cd_rules when similar names exist in the root ↵Marco d'Itri
directory The argument to find_all_rules must be quoted or it will be subject to shell expansion, which will happen if in the root directory there are mount points with the same base name. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407738 for details.
2007-08-07rules_generator: remove policy from write_cd_rulesMarco d'Itri
The decision about when to create by-id or by-path persistent rules should be made in the generator rules file where it's obvious and easy to modify locally, not in the script.
2007-08-02rules_generator: skip random MAC addressesKay Sievers
2007-07-25rules_generator: remove "installation" functionKay Sievers
This should be called by triggering events not by looping with the script itself. It also keeps a second blacklist outside of the rules which we do not want to maintain.
2007-07-25rules_generator: add S/390 persistent network supportHannes Reinecke
2007-06-25rules_generator: remove executable flag from include fileKay Sievers
2007-03-22write_cd_rules: set default link type to "by-id" for usb and ieee1394 devicesMatthias Schwarzott
2007-02-26rule_generator: fix for creating rules on read-only filesystemMatthias Schwarzott
2007-01-21fix INSTALL_PROGRAM vs. INSTALL_SCRIPTPeter Breitenlohner
2006-11-27write_cd_rules: identity-based persistenceMarco d'Itri
Bryan Kadzban wrote: > Marco d'Itri wrote: > > Bryan Kadzban wrote: > > > > > This is a sort of follow-up of my path-based persistence patch for > > > net devices; it's the opposite type of addition for CD symlinks. > > > > Looks good. I am attaching a slightly reformatted version, I think it > > should be applied. > > That's probably a lot more clear than my version anyway: what you posted > looks like it does basically the same thing, just with some changes in > the order and sense of checks.
2006-09-09rule_generator: improve net rule comment generationKay Sievers
2006-09-05add persistent rules generator for net devices and optical drivesMarco d'Itri