]> git.ozlabs.org Git - petitboot/blobdiff - utils/pb-udhcpc
utils/pb-udhcpc: remove bashism when reading mac address
[petitboot] / utils / pb-udhcpc
index 3494985d3fc33dfcb6ed0b74b9b5d74368ba10b4..60cfa58df604d2567121a749a7be586b1c8ab982 100644 (file)
@@ -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;