summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs')
-rwxr-xr-xinitramfs/stage3-stuff/init2
1 files changed, 1 insertions, 1 deletions
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