diff options
author | Dirk von Suchodoletz | 2011-06-04 12:48:36 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2011-06-04 12:48:36 +0200 |
commit | cd90ec737d7ec21766fdf8bcdeffbabc40434de6 (patch) | |
tree | b7f08559ac94d8731926e8ac661a1e2b44297a39 /src/initramfs/scripts/etc | |
parent | Merge branch 'master' of git.openslx.org:openslx/core (diff) | |
download | core-cd90ec737d7ec21766fdf8bcdeffbabc40434de6.tar.gz core-cd90ec737d7ec21766fdf8bcdeffbabc40434de6.tar.xz core-cd90ec737d7ec21766fdf8bcdeffbabc40434de6.zip |
Fix for tftp (TFTP servers like to deal with absolute path).
Diffstat (limited to 'src/initramfs/scripts/etc')
-rw-r--r-- | src/initramfs/scripts/etc/functions | 4 |
1 files changed, 2 insertions, 2 deletions
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 |