From: root Date: Sat, 12 Dec 2015 11:35:24 +0000 (+0100) Subject: ramdisk: Fix copying files X-Git-Url: http://git.ipfire.org/?p=people%2Fmeitelwein%2Fipfire-2.x.git;a=commitdiff_plain;h=24f2144dd26388215ab204b0e48217ffa4d40bfb ramdisk: Fix copying files The shell expansion wasn't used because of the quotation marks. Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/init.d/functions b/src/initscripts/init.d/functions index fc4d8a4b9..232d52382 100644 --- a/src/initscripts/init.d/functions +++ b/src/initscripts/init.d/functions @@ -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}"