The $(< FILE) syntax we use to read an interface's MAC address doesn't
work in dash or busybox sh. Instead, use cat.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
# parameter was in the header, or specified by options
[ -z "$bootfile" ] && bootfile=${boot_file}
# 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
paramstr=''
# Collect relevant DHCP response parameters into $paramstr