Compare commits

...

1 Commits

Author SHA1 Message Date
Patrik Stridvall
e63a006822 iup: TFTP: Support for specifying the port in the URL (defaults to 69) 2016-04-18 15:19:56 +02:00

View File

@@ -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