ramdisk: Fix copying files

The shell expansion wasn't used because of the quotation marks.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
root
2015-12-12 12:35:24 +01:00
committed by Michael Tremer
parent ffeaaef618
commit 24f2144dd2

View File

@@ -756,7 +756,7 @@ mount_ramdisk() {
mount -t tmpfs none "${path_tmpfs}"
# Restore ramdisk content
cp -pR "${path}/*" "${path_tmpfs}"
cp -pR ${path}/* "${path_tmpfs}"
# Move ramdisk to final destination
mount --move "${path_tmpfs}" "${path}"
@@ -777,7 +777,7 @@ umount_ramdisk() {
mount --move "${path}" "${path_tmpfs}"
# Backup ramdisk content
cp -pR "${path_tmpfs}/*" "${path}"
cp -pR ${path_tmpfs}/* "${path}"
# Destroy the ramdisk
umount "${path_tmpfs}"