From 8c8d6be7eb945288ab57da8088e8a1ace50b6d2e Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 20 Jan 2014 08:42:44 +0800 Subject: [PATCH] utils/pb-udhcpc: remove bashism when reading mac address 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 --- utils/pb-udhcpc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pb-udhcpc b/utils/pb-udhcpc index 714d5b4..60cfa58 100644 --- a/utils/pb-udhcpc +++ b/utils/pb-udhcpc @@ -14,7 +14,7 @@ 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 -- 2.39.2