X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=utils%2Fpb-udhcpc;h=4495266e4614ee31bd6cf3068acf15e591300b06;hp=7ed9035d5e9dad89f7880a0815e645320b8939d4;hb=ff7293bba1fd4cdf54bb90bd1b7a38dd393fee69;hpb=6d05fe798a06ba93418a1f8517e8f30cadcfd5e4 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