]> git.ozlabs.org Git - petitboot/commitdiff
utils/pb-udhcpc: Fix incorrect reference to $interface
authorJeremy Kerr <jk@ozlabs.org>
Mon, 20 Jan 2014 00:51:11 +0000 (08:51 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 20 Jan 2014 00:51:11 +0000 (08:51 +0800)
We have a typo in the udhcpc hook, where we're not referncing the
interface variable correctly. This means we'll get the same device
identifier for all netboot options.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
utils/pb-udhcpc

index 60cfa58df604d2567121a749a7be586b1c8ab982..f0703ae6df75ff55ba1ac3b9bd897a92afb956ac 100644 (file)
@@ -27,7 +27,7 @@ pb_add () {
                paramstr="$paramstr $name=$value"
        done
 
-       pb-event dhcp@{interface} $paramstr
+       pb-event dhcp@${interface} $paramstr
 
        # Check if an explicit config file present
        if [ -n "${conffile}" ]
@@ -47,7 +47,7 @@ pb_add () {
                 paramstr="$paramstr $name=$value"
         done
 
-       pb-event add@{interface} $paramstr
+       pb-event add@${interface} $paramstr
 }
 
 pb_remove () {