ramdisk: Remove temporary directory recursively

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

View File

@@ -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