summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs')
-rw-r--r--initramfs/initrd-stuff/etc/functions14
1 files changed, 7 insertions, 7 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index 83992869..c047ce58 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -350,7 +350,7 @@ if [ "x$filepath" != "x" ] ; then
umount /dev/$ldev
;;
*)
- tftp -g -r '$cfgfile' -l /tmp/$(basename "$cfgfile") "$fileserv" \
+ tftp -g -r "$cfgfile" -l /tmp/$(basename "$cfgfile") $fileserv \
&& unpack /tmp/$(basename "$cfgfile")
;;
esac
@@ -365,16 +365,16 @@ else
echo -e "\n## Configuration via fileget: Hierarchy is distro client \
and as last\n# distro/default" >> /tmp/confviafile
mac=$(echo $macaddr|sed "s/:/-/g")
- for cfgfile in ${filepath}/${SYSTEM_NAME}/01-$mac.tgz \
- ${filepath}/${SYSTEM_NAME}/default.tgz ; do
+ for cfgfile in "${filepath}/${SYSTEM_NAME}/01-${mac}.tgz" \
+ "${filepath}/${SYSTEM_NAME}/default.tgz" ; do
case "$fileprot" in
ftp|http)
- wget $fileprot://$fileserv/$cfgfile -O /tmp/$(basename $cfgfile) \
- 2>/dev/null && { unpack /tmp/$(basename $cfgfile) && break; }
+ wget $fileprot://$fileserv/"$cfgfile" -O /tmp/$(basename "$cfgfile") \
+ 2>/dev/null && { unpack /tmp/$(basename "$cfgfile") && break; }
;;
tftp)
- tftp -g -r $cfgfile -l /tmp/$(basename $cfgfile) $fileserv \
- && { unpack /tmp/$(basename $cfgfile) && break; }
+ tftp -g -r "$cfgfile" -l /tmp/$(basename "$cfgfile") $fileserv \
+ && { unpack /tmp/$(basename "$cfgfile") && break; }
;;
esac
done