summaryrefslogtreecommitdiffstats
path: root/utils/pb-udhcpc
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2012-10-16 14:58:53 -0700
committerGeoff Levand <geoff@infradead.org>2012-10-16 14:58:53 -0700
commite7815dc27286b66bd67e4727a1a4f51a5b862b0d (patch)
tree378924ea34b1c36a48e223a327ad8f799dc1725d /utils/pb-udhcpc
parent49a33ebc7ffc389069849b739d0d75b5749c9356 (diff)
downloadtalos-petitboot-e7815dc27286b66bd67e4727a1a4f51a5b862b0d.tar.gz
talos-petitboot-e7815dc27286b66bd67e4727a1a4f51a5b862b0d.zip
Convert echo to printf in scripts
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'utils/pb-udhcpc')
-rw-r--r--utils/pb-udhcpc8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/pb-udhcpc b/utils/pb-udhcpc
index f157064..45c8019 100644
--- a/utils/pb-udhcpc
+++ b/utils/pb-udhcpc
@@ -15,11 +15,11 @@ pb_add () {
[ ${k_server_ip} != ${rootpath} ] || k_server_ip=${serverid}
- echo -ne "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
+ 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_remove () {
- echo -ne "remove@/net/${interface}\0name=netboot\0" | pb-event
+ printf "remove@/net/${interface}\0name=netboot\0" | pb-event
}
case "$1" in
@@ -33,6 +33,6 @@ deconfig)
;;
esac
-echo "--- $1 ---" >> ${log}
+printf "--- $1 ---\n" >> ${log}
set >> ${log}
-echo "---------------" >> ${log}
+printf "---------------\n" >> ${log}
OpenPOWER on IntegriCloud