]> git.ipfire.org Git - people/meitelwein/ipfire-2.x.git/commitdiff
ramdisk: Fix copying files
authorroot <root@ipfire.localdomain>
Sat, 12 Dec 2015 11:35:24 +0000 (12:35 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 12 Dec 2015 11:36:17 +0000 (12:36 +0100)
The shell expansion wasn't used because of the quotation marks.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/init.d/functions

index fc4d8a4b9aff01f43884b60f55d169d3f93a5b98..232d52382f057b0a6850edf53d252ad05c7991af 100644 (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}"