mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-21 19:34:41 +02:00
global-functions: $MkDir: use $RmDir
This commit is contained in:
parent
4760515add
commit
f5f00b70e3
1 changed files with 2 additions and 1 deletions
|
@ -857,6 +857,7 @@
|
|||
|
||||
:global CleanFilePath;
|
||||
:global LogPrint;
|
||||
:global RmDir;
|
||||
:global WaitForFile;
|
||||
|
||||
:local MkTmpfs do={
|
||||
|
@ -873,7 +874,7 @@
|
|||
}
|
||||
|
||||
$LogPrint info $0 ("Creating disk of type tmpfs.");
|
||||
/file/remove [ find where name="tmpfs" type="directory" ];
|
||||
$RmDir "tmpfs";
|
||||
:do {
|
||||
/disk/add slot=tmpfs type=tmpfs tmpfs-max-size=([ /system/resource/get total-memory ] / 3);
|
||||
$WaitForFile "tmpfs";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue