aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/source/system/mount/mount-tmp/up
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/source/system/mount/mount-tmp/up')
-rw-r--r--src/lib/source/system/mount/mount-tmp/up9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/source/system/mount/mount-tmp/up b/src/lib/source/system/mount/mount-tmp/up
new file mode 100644
index 0000000..0eaf4da
--- /dev/null
+++ b/src/lib/source/system/mount/mount-tmp/up
@@ -0,0 +1,9 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+if { mkdir -p -- /tmp }
+if -n -x0 { mountpoint -q /tmp }
+ mount -t tmpfs -o mode=1777 tmpfs /tmp