summaryrefslogtreecommitdiffstats
path: root/src/initramfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2011-06-04 12:48:36 +0200
committerDirk von Suchodoletz2011-06-04 12:48:36 +0200
commitcd90ec737d7ec21766fdf8bcdeffbabc40434de6 (patch)
treeb7f08559ac94d8731926e8ac661a1e2b44297a39 /src/initramfs
parentMerge branch 'master' of git.openslx.org:openslx/core (diff)
downloadcore-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')
-rw-r--r--src/initramfs/scripts/etc/functions4
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