summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/pb-udhcpc4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/pb-udhcpc b/utils/pb-udhcpc
index 729de08..252bb11 100644
--- a/utils/pb-udhcpc
+++ b/utils/pb-udhcpc
@@ -38,8 +38,8 @@ do_pxe() {
params="conf@/net/${interface} method=dhcp"
# first, try by MAC
- mac=$(cat /sys/class/net/$interface/address)
- pb-event $params url=$basedir/$mac
+ mac=$(tr ':' '-' < /sys/class/net/$interface/address)
+ pb-event $params url=$basedir/01-$mac
# try decreasing fragments of IP lease
ip_hex=$(printf '%02X%02X%02X%02X' $(echo $ip | tr '.' ' '))
OpenPOWER on IntegriCloud