summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-24 17:01:58 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-24 17:01:58 +0800
commit25e4608e9e4572b3a835f7c43a8ec9c77125f492 (patch)
tree266dc89314de5a72a4e19956d768b24cd583c9af /utils
parentf452571550b6c6016698a50c834087c0d8c7575b (diff)
downloadtalos-petitboot-25e4608e9e4572b3a835f7c43a8ec9c77125f492.tar.gz
talos-petitboot-25e4608e9e4572b3a835f7c43a8ec9c77125f492.zip
pb-udhcpc: use plain kernel names for dhcp events
No need to prefix with /net/ Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'utils')
-rw-r--r--utils/pb-udhcpc10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/pb-udhcpc b/utils/pb-udhcpc
index d641e99..bac16da 100644
--- a/utils/pb-udhcpc
+++ b/utils/pb-udhcpc
@@ -36,10 +36,10 @@ resolve_url() {
do_pxe() {
basedir=$1
- params="conf@/net/${interface} method=dhcp"
+ params="conf@${interface} method=dhcp"
# first, try by MAC
- mac=$(tr ':' '-' < /sys/class/net/$interface/address)
+ mac=$(tr ':' '-' < /sys/class/$interface/address)
pb-event $params url=$basedir/01-$mac
# try decreasing fragments of IP lease
@@ -61,7 +61,7 @@ pb_add () {
if [ -n "${conffile}" ]
then
url=$(resolve_url ${conffile})
- pb-event conf@/net/${interface} url=$url method=dhcp
+ pb-event conf@${interface} url=$url method=dhcp
return
fi
@@ -96,14 +96,14 @@ pb_add () {
args="root=/dev/nfs ip=any nfsroot=${k_server_ip}:${k_root_dir}"
fi
- pb-event add@/net/${interface} \
+ pb-event add@${interface} \
name=netboot \
image=tftp://${siaddr}/${boot_file} \
args="$args"
}
pb_remove () {
- pb-event remove@/net/${interface} name=netboot
+ pb-event remove@${interface} name=netboot
}
case "$1" in
OpenPOWER on IntegriCloud