summaryrefslogtreecommitdiffstats
path: root/utils/pb-udhcpc
diff options
context:
space:
mode:
Diffstat (limited to 'utils/pb-udhcpc')
-rw-r--r--utils/pb-udhcpc5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/pb-udhcpc b/utils/pb-udhcpc
index 7ed9035..4495266 100644
--- a/utils/pb-udhcpc
+++ b/utils/pb-udhcpc
@@ -40,7 +40,7 @@ pb_add () {
# Collect relevant parameters to add an option to the bootfile
# parameter
- for name in rootpath siaddr bootfile
+ for name in rootpath siaddr bootfile mac
do
value=$(eval "echo \${$name}")
[ -n "$value" ] || continue;
@@ -53,7 +53,8 @@ pb_add () {
}
pb_remove () {
- pb-event remove@${interface}
+ mac=$(cat /sys/class/net/$interface/address)
+ pb-event remove@${interface} mac=$mac
}
case "$1" in
OpenPOWER on IntegriCloud