1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
Kay Sievers
8b5651bb00 switch a few left-over from GPLv2 to GPLv2 or later 2010-06-25 11:39:21 +02:00
Kay Sievers
9bdca442ef rule_generator: fix netif NAME= value extraction regex
$ 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-23 15:44:34 +02:00
David Woodhouse
8b6e9f287d rules_generator: net rules - add "dev_id" value to generated rules 2008-04-27 20:19:44 +02:00
Kay Sievers
e6d70ed63a rules_generator: net rules - always add KERNEL== match to generated rules 2008-04-15 00:21:51 +02:00
Kay Sievers
9138bcba99 rules_generator: add KERNEL=="<netifname>*" to generated rules
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.
2008-03-13 16:31:14 +01:00
Jiri Slaby
6e509e539b rules_generator: add missing write_net_rules unlock 2007-12-31 14:24:55 +01:00
Kay Sievers
c746922ca2 rule_generator: move all policy from write_net_rules to the rules file 2007-09-21 17:42:46 +02:00
Kay Sievers
dcfa2acce3 rules_generator: skip random MAC addresses 2007-08-02 21:19:41 +02:00
Kay Sievers
9b23e594bf rules_generator: remove "installation" function
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-25 18:16:11 +02:00
Hannes Reinecke
49369cafe4 rules_generator: add S/390 persistent network support 2007-07-25 15:42:39 +02:00
Marco d'Itri
fbcbf70bb2 add persistent rules generator for net devices and optical drives 2006-09-05 15:20:28 +02:00