On 4 April 2014 16:24, Bruce Dubbs <bruce.du...@gmail.com> wrote: > Robin wrote: >> On 4 April 2014 15:25, Bruce Dubbs <bruce.du...@gmail.com> wrote: >>> Robin wrote: >>>> Refers to udev (systemd) and not eudev. >>>> >>>> The instructions on eudev don't include creating >>>> /etc/udev/rules.d/70-persistent-net.rules >>>> only /etc/udev/rules.d/55-lfs.rules >>>> >>>> Is it okay to use udev instructions from LFS 7.5 to create the database? >>> >>> Yes, it is. It need the init-net-rules.sh, write_net_rules, and >>> rule_generator.functions scripts. >>> >>> Or you can just add it manually: >>> >>> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \ >>> ATTR{address}=="00:25:64:38:ec:dd", ATTR{dev_id}=="0x0", \ >>> ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" >>> >>> Change the MAC address to match your ethernet device. > >> Thanks. I'd found >> www.linuxfromscratch.org/blfs/view/development/chapter07/network.html > > Be careful. There are a lot of recent changes in that. > > -- Bruce > >
Mine was wrong. Ran udevadm test /sys/class/net/eth0 and opened /etc/udev/rules.d/70-persistent-net.rules in vim to find the correct line added. So if an incorrect rule exists in /etc/udev/rules.d/ udevadm test adds the correct line to the file? I couldn't see any mention in the man page. -- rob -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page