From 32751d7dc42c50a3dba854fcce525eb53d45efb8 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 14 Aug 2014 22:15:54 -0400 Subject: [PATCH] Add udev rule to name network interface eth0 Also automate installation of future udev rules. --- stage2/misc/udev/20-network.rules | 2 ++ stage2/pkg/eudev | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 stage2/misc/udev/20-network.rules diff --git a/stage2/misc/udev/20-network.rules b/stage2/misc/udev/20-network.rules new file mode 100644 index 0000000..d7ef635 --- /dev/null +++ b/stage2/misc/udev/20-network.rules @@ -0,0 +1,2 @@ +SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:04:0b:80:80:80", NAME="eth0" + diff --git a/stage2/pkg/eudev b/stage2/pkg/eudev index d3cdeb9..ef42cb4 100644 --- a/stage2/pkg/eudev +++ b/stage2/pkg/eudev @@ -24,10 +24,10 @@ hvbuild_post() { install -v -m755 ${SCRDIR}/misc/udev/udev-create-persistent-net.sh \ /usr/local/bin - install -v -m644 ${SCRDIR}/misc/udev/10-media-automount.rules \ - /etc/udev/rules.d/ - install -v -m644 ${SCRDIR}/misc/udev/11-sd-card-automount.rules \ - /etc/udev/rules.d/ + + for f in ${SCRDIR}/misc/udev/*.rules; do + install -v -m644 ${f} /etc/udev/rules.d + done sed -i -e "s/\(SYMLINK+=\"cdrom\)\"/\1 dvd\"/" \ /lib/udev/rules.d/60-cdrom_id.rules -- 2.20.1