From cd90ec737d7ec21766fdf8bcdeffbabc40434de6 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sat, 4 Jun 2011 12:48:36 +0200 Subject: Fix for tftp (TFTP servers like to deal with absolute path). --- src/initramfs/scripts/etc/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/initramfs/scripts') diff --git a/src/initramfs/scripts/etc/functions b/src/initramfs/scripts/etc/functions index 3e8d4904..4ad43c7b 100644 --- a/src/initramfs/scripts/etc/functions +++ b/src/initramfs/scripts/etc/functions @@ -1,5 +1,5 @@ # Copyright (c) 2003..2006 - RZ Uni Freiburg -# Copyright (c) 2006..2009 - OpenSLX GmbH +# Copyright (c) 2006..2011 - OpenSLX GmbH # # This program/file is free software distributed under the GPL version 2. # See http://openslx.org/COPYING @@ -323,7 +323,7 @@ tftp_get () { echo "[tftp_get] download of \"$file\" from \"$file_server\" ... failed" return 0; fi - tftp -g -r $file -l /tmp/$(basename $file) $file_server + tftp -g -r "/$file" -l /tmp/$(basename $file) $file_server [ -s /tmp/$(basename $file) ] && download_successful=1 countdown=$(expr $countdown - 1) usleep 200000 -- cgit v1.2.3-55-g7522