From: root Date: Fri, 15 Aug 2014 02:15:54 +0000 (-0400) Subject: Add udev rule to name network interface eth0 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=32751d7dc42c50a3dba854fcce525eb53d45efb8;p=hvlinux.git Add udev rule to name network interface eth0 Also automate installation of future udev 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