From 8e08d3ebd28b3ddd3f56c8e1c4618d5354d932f8 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 29 Apr 2007 21:33:56 +0000 Subject: Fixed error from removing of "MAC", check the usage of macaddr for XEN! Gave more room for SLX version string. The variable $DISTRO is to be filled in with the export name (to be compatible with directory naming of config directories ...), see BootRootVerzeichnisse for that ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@965 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/initrd-stuff/init | 2 ++ 1 file changed, 2 insertions(+) (limited to 'initramfs/initrd-stuff/init') diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init index 653554a0..befb4fa6 100755 --- a/initramfs/initrd-stuff/init +++ b/initramfs/initrd-stuff/init @@ -298,6 +298,8 @@ hwautocfg nwmod ip link set dev lo up ip addr add 127.0.0.1/8 dev lo ip link set dev eth0 up || error "$init_noeth" +macaddr=$(ip link show dev eth0|sed -n "/ether [0-9e-f]\{2\}:.*/p" \ + |sed -e "s/.*ether //;s/ .*//") # XEN bridge config [ -n "$xenbr" ] && xenbr_config -- cgit v1.2.3-55-g7522