aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--global-functions.rsc8
1 files changed, 7 insertions, 1 deletions
diff --git a/global-functions.rsc b/global-functions.rsc
index 121c5ec..eb49a3b 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -829,7 +829,13 @@
:global LogPrint;
:global WaitForFile;
- :if ([ :len [ /disk/find where slot=tmpfs type=tmpfs ] ] = 1) do={
+ :if ([ :len [ /disk/find where slot=tmpfs type=tmpfs disabled=no ] ] = 1) do={
+ :return true;
+ }
+
+ :if ([ :len [ /disk/find where slot=tmpfs type=tmpfs disabled=yes ] ] = 1) do={
+ $LogPrint info $0 ("The tmpfs is disabled, enabling.");
+ /disk/enable [ /disk/find where slot=tmpfs type=tmpfs disabled=yes ];
:return true;
}