]> err.no Git - systemd/commit
rule_generator: fix netif NAME= value extraction regex
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 23 Oct 2008 13:44:34 +0000 (15:44 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 23 Oct 2008 13:44:34 +0000 (15:44 +0200)
commit9bdca442ef3f7d54cea9827605ec635712009735
tree71491d0baa26b1eeb6ae708fa9b2e83cdf7ff5a8
parent84629ccd85cb65c82dd9cb1c5411c55f2c0abbf0
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
extras/rule_generator/rule_generator.functions
extras/rule_generator/write_cd_rules
extras/rule_generator/write_net_rules