X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=utils%2Fpb-udhcpc;h=60cfa58df604d2567121a749a7be586b1c8ab982;hp=3494985d3fc33dfcb6ed0b74b9b5d74368ba10b4;hb=8c8d6be7eb945288ab57da8088e8a1ace50b6d2e;hpb=b8e53cb4b96eb17dc7fa0ffc505dfebae37e6cbf diff --git a/utils/pb-udhcpc b/utils/pb-udhcpc index 3494985..60cfa58 100644 --- a/utils/pb-udhcpc +++ b/utils/pb-udhcpc @@ -14,11 +14,12 @@ pb_add () { # parameter was in the header, or specified by options [ -z "$bootfile" ] && bootfile=${boot_file} - mac=$(< /sys/class/net/$interface/address) + mac=$(cat /sys/class/net/$interface/address) paramstr='' # Collect relevant DHCP response parameters into $paramstr - for name in conffile bootfile mac ip siaddr serverid tftp + for name in pxeconffile pxepathprefix bootfile mac ip siaddr \ + serverid tftp do value=$(eval "echo \${$name}") [ -n "$value" ] || continue;