mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-03 09:44:35 +02:00
global-functions: $MkDir: enable tmpfs if disabled
This commit is contained in:
parent
ce1b635eb2
commit
eab9b28cd2
1 changed files with 6 additions and 1 deletions
|
@ -829,7 +829,12 @@
|
|||
:global LogPrint;
|
||||
:global WaitForFile;
|
||||
|
||||
:if ([ :len [ /disk/find where slot=tmpfs type=tmpfs ] ] = 1) do={
|
||||
:local TmpFs [ /disk/find where slot=tmpfs type=tmpfs ];
|
||||
:if ([ :len $TmpFs ] = 1) do={
|
||||
:if ([ /disk/get $TmpFs disabled ] = true) do={
|
||||
$LogPrint info $0 ("The tmpfs is disabled, enabling.");
|
||||
/disk/enable $TmpFs;
|
||||
}
|
||||
:return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue