From: Harald Hoyer Date: Fri, 11 Jun 2010 11:16:36 +0000 (+0200) Subject: network: strip pxelinux hardware type field from BOOTIF X-Git-Tag: 006~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f927f201d5ed6f650d18b7143e148c8c12a00a6;p=thirdparty%2Fdracut-ng.git network: strip pxelinux hardware type field from BOOTIF --- diff --git a/modules.d/40network/net-genrules.sh b/modules.d/40network/net-genrules.sh index 10d6ecd00..7a2690964 100755 --- a/modules.d/40network/net-genrules.sh +++ b/modules.d/40network/net-genrules.sh @@ -6,6 +6,8 @@ fix_bootif() { local IFS='-' macaddr=$(for i in ${macaddr} ; do echo -n $i:; done) macaddr=${macaddr%:} + # strip hardware type field from pxelinux + [ -n "${macaddr%??:??:??:??:??:??}" ] && macaddr=${macaddr#??:} echo $macaddr }