summaryrefslogtreecommitdiffstats
path: root/utils/pb-udhcpc
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-01-20 08:51:11 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-01-20 08:51:11 +0800
commit416647ec10a0ca505de35348620391fde80043c0 (patch)
tree6c9c649e496a6def56b2697774c5d057a77aecff /utils/pb-udhcpc
parent8c8d6be7eb945288ab57da8088e8a1ace50b6d2e (diff)
downloadpetitboot-416647ec10a0ca505de35348620391fde80043c0.zip
petitboot-416647ec10a0ca505de35348620391fde80043c0.tar.gz
utils/pb-udhcpc: Fix incorrect reference to $interface
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>
Diffstat (limited to 'utils/pb-udhcpc')
-rw-r--r--utils/pb-udhcpc4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/pb-udhcpc b/utils/pb-udhcpc
index 60cfa58..f0703ae 100644
--- a/utils/pb-udhcpc
+++ b/utils/pb-udhcpc
@@ -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 () {
OpenPOWER on IntegriCloud