diff options
Diffstat (limited to 'utils/pb-udhcpc')
-rw-r--r-- | utils/pb-udhcpc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/pb-udhcpc b/utils/pb-udhcpc index 91d40f6..ff23178 100644 --- a/utils/pb-udhcpc +++ b/utils/pb-udhcpc @@ -15,11 +15,14 @@ pb_add () { [ ${k_server_ip} != ${rootpath} ] || k_server_ip=${serverid} - printf "add@/net/${interface}\0name=netboot\0image=tftp://${siaddr}/${boot_file}\0args=root=/dev/nfs ip=any nfsroot=${k_server_ip}:${k_root_dir}\0" | pb-event + pb-event add@/net/${interface} \ + name=netboot \ + image=tftp://${siaddr}/${boot_file} \ + args="root=/dev/nfs ip=any nfsroot=${k_server_ip}:${k_root_dir}" } pb_remove () { - printf "remove@/net/${interface}\0name=netboot\0" | pb-event + pb-event remove@/net/${interface} name=netboot } case "$1" in |