mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 21:12:59 +02:00
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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user