aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-07-04 11:56:56 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-07-04 15:31:43 +0200
commiteab9b28cd28b1d12d3f0d178db22acdac5ad1758 (patch)
tree9d2a98f1598b80e3c0b5d576686049874546a20c /global-functions.rsc
parentce1b635eb2d96706ef0a8b603737062338f92238 (diff)
global-functions: $MkDir: enable tmpfs if disabled
Diffstat (limited to 'global-functions.rsc')
-rw-r--r--global-functions.rsc7
1 files changed, 6 insertions, 1 deletions
diff --git a/global-functions.rsc b/global-functions.rsc
index 121c5ec..44b3abe 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -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;
}