X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=utils%2Fpb-udhcpc;h=60cfa58df604d2567121a749a7be586b1c8ab982;hp=4ff0dcf2dc9328d71cd8deaff2b69e4120a2dc58;hb=8c8d6be7eb945288ab57da8088e8a1ace50b6d2e;hpb=08e967ee301b502b2114e3855210a0b2600d095c diff --git a/utils/pb-udhcpc b/utils/pb-udhcpc index 4ff0dcf..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 pxeconffile 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;