Browse Source

network: strip pxelinux hardware type field from BOOTIF

master
Harald Hoyer 15 years ago
parent
commit
5f927f201d
  1. 2
      modules.d/40network/net-genrules.sh

2
modules.d/40network/net-genrules.sh

@ -6,6 +6,8 @@ fix_bootif() { @@ -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
}


Loading…
Cancel
Save