]> git.ozlabs.org Git - petitboot/blobdiff - utils/pb-udhcpc
configure: Update AC_PACKAGE_BUGREPORT
[petitboot] / utils / pb-udhcpc
index 7ed9035d5e9dad89f7880a0815e645320b8939d4..4495266e4614ee31bd6cf3068acf15e591300b06 100644 (file)
@@ -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