diff --git a/iup/files/sbin/iup b/iup/files/sbin/iup index a6c188f5d..57211f92d 100755 --- a/iup/files/sbin/iup +++ b/iup/files/sbin/iup @@ -126,9 +126,14 @@ handle_provisioning() { if [ ${url%%:*} == "tftp" ]; then tftpfile=${url#*\/\/} host=${tftpfile%%\/*} + port=${host#*:} + host=${host%%:*} + if [-z ${port} ]; then + port=69 + fi tftpfile=${tftpfile#*\/} - /usr/bin/tftp -l $IUPCONFFILES -r "$tftpfile" -g "$host" + /usr/bin/tftp -l $IUPCONFFILES -r "$tftpfile" -g "$host" "$port" else get_image "$url" "cat" > $IUPCONFFILES fi