summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-01-20 08:42:44 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-01-20 08:42:44 +0800
commit8c8d6be7eb945288ab57da8088e8a1ace50b6d2e (patch)
treea730813d4aa7da167cbbdedae0484ba353ce1234
parent23f75c74abde1b336e470d3febe68a45bfa68c5b (diff)
downloadpetitboot-8c8d6be7eb945288ab57da8088e8a1ace50b6d2e.zip
petitboot-8c8d6be7eb945288ab57da8088e8a1ace50b6d2e.tar.gz
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 <jk@ozlabs.org>
-rw-r--r--utils/pb-udhcpc2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud