From f7292356acc5429b7cc3a61e0bbac7ff9b0dc74e Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Thu, 22 Jul 2010 18:46:52 +0200 Subject: Suse.pm: bugfix, forgot "," init: replaced string extraction, since old did not work anymore --- initramfs/stage3-stuff/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'initramfs/stage3-stuff/init') diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init index 40816192..86d9da9c 100755 --- a/initramfs/stage3-stuff/init +++ b/initramfs/stage3-stuff/init @@ -386,7 +386,7 @@ runinithook '10-nw-if-config' if strinstr "eth" "$nwif" ; then for ethif in eth0 eth1 eth2 eth3 ; do export macaddr=$(ip link show dev $ethif 2>/dev/null | \ - sed -n "/ether [0-9e-f]\{2\}:.*/p" | sed -e "s/.*ether //;s/ .*//") + grep -i link.ether | awk '{print $2}') # if there is no bootmac present in kernel commandline any checks are # useless if [ -z "$bootmac" ] ; then -- cgit v1.2.3-55-g7522