diff options
author | Christian Hesse <mail@eworm.de> | 2023-01-22 13:30:59 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-01-23 16:21:02 +0100 |
commit | c8dcd92e6b03af17b2585188629d3949aaf75601 (patch) | |
tree | b927c50abfc63b212ba75276b5b9ff574840209e /global-functions | |
parent | c7498c6397b706d191741d0a6634d4adfbd4c0db (diff) |
global-functions: $MkDir: create with reasonable tmpfs-max-sizerouteros-7.8beta2
Giving no tmpfs-max-size breaks with RouterOS 7.8beta2, where a size
limit is enforced.
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/global-functions b/global-functions index d969653..e674d7d 100644 --- a/global-functions +++ b/global-functions @@ -574,7 +574,7 @@ :if ([ :len [ /disk/find where slot=tmpfs type=tmpfs ] ] = 0) do={ $LogPrintExit2 info $0 ("Creating disk of type tmpfs.") false; /file/remove [ find where name="tmpfs" type="directory" ]; - [ :parse "/disk/add slot=tmpfs type=tmpfs;" ]; + [ :parse "/disk/add slot=tmpfs type=tmpfs tmpfs-max-size=([ /system/resource/get total-memory ] / 3);" ]; } :set Continue true; } |