mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
ramdisk: Remove temporary directory recursively
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -760,7 +760,7 @@ mount_ramdisk() {
|
||||
|
||||
# Move ramdisk to final destination
|
||||
mount --move "${path_tmpfs}" "${path}"
|
||||
rm -f "${path_tmpfs}"
|
||||
rm -rf "${path_tmpfs}"
|
||||
}
|
||||
|
||||
umount_ramdisk() {
|
||||
@@ -781,7 +781,7 @@ umount_ramdisk() {
|
||||
|
||||
# Destroy the ramdisk
|
||||
umount "${path_tmpfs}"
|
||||
rm -f "${path_tmpfs}"
|
||||
rm -rf "${path_tmpfs}"
|
||||
}
|
||||
|
||||
# End $rc_base/init.d/functions
|
||||
|
||||
Reference in New Issue
Block a user