1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-31 16:21:11 +03:00
systemd-stable/extras/rule_generator
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
..
75-cd-aliases-generator.rules rules_generator: remove policy from write_cd_rules 2007-08-07 10:37:58 +02:00
75-persistent-net-generator.rules rules: persistent net - handle "locally administered" ibmveth MAC addresses 2008-05-26 17:11:13 +02:00
Makefile.am build: include Makefile.am.inc in all Makefile.am 2008-10-01 18:02:39 +02:00
rule_generator.functions rule_generator: fix netif NAME= value extraction regex 2008-10-23 15:44:34 +02:00
write_cd_rules rule_generator: fix netif NAME= value extraction regex 2008-10-23 15:44:34 +02:00
write_net_rules rule_generator: fix netif NAME= value extraction regex 2008-10-23 15:44:34 +02:00