summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/init
diff options
context:
space:
mode:
authorMichael Janczyk2010-07-22 18:46:52 +0200
committerMichael Janczyk2010-07-22 18:46:52 +0200
commitf7292356acc5429b7cc3a61e0bbac7ff9b0dc74e (patch)
treeee494eda60e12cd9e557cc665f35292e26998de8 /initramfs/stage3-stuff/init
parentadded systems suse 11.3 scilin 5.4-5.5, todo installer packages for suse 11.3... (diff)
downloadcore-f7292356acc5429b7cc3a61e0bbac7ff9b0dc74e.tar.gz
core-f7292356acc5429b7cc3a61e0bbac7ff9b0dc74e.tar.xz
core-f7292356acc5429b7cc3a61e0bbac7ff9b0dc74e.zip
Suse.pm: bugfix, forgot ","
init: replaced string extraction, since old did not work anymore
Diffstat (limited to 'initramfs/stage3-stuff/init')
-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