diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-01-20 08:42:44 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-01-20 08:42:44 +0800 |
commit | 8c8d6be7eb945288ab57da8088e8a1ace50b6d2e (patch) | |
tree | a730813d4aa7da167cbbdedae0484ba353ce1234 | |
parent | 23f75c74abde1b336e470d3febe68a45bfa68c5b (diff) | |
download | petitboot-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-udhcpc | 2 |
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 |