summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.embedded9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/rc.embedded b/etc/rc.embedded
index f16fc59..fd264a6 100755
--- a/etc/rc.embedded
+++ b/etc/rc.embedded
@@ -9,7 +9,14 @@ partsize="3m"
echo -n "Setting up embedded specific environment..."
# Run some initialization routines
[ -f /etc/rc.d/uzip ] && /etc/rc.d/uzip start
-/etc/rc.d/tmp start
+
+# Initialize MFS for /tmp. Partly taken from /etc/rc.d/var
+if (/bin/mkdir -p /tmp/.diskless 2> /dev/null); then
+ rmdir /tmp/.diskless
+else
+ varsize="40m"
+ mdmfs -S -M -s ${varsize} md /tmp
+fi
# Initialize MFS for /var. Partly taken from /etc/rc.d/var
if (/bin/mkdir -p /var/.diskless 2> /dev/null); then
OpenPOWER on IntegriCloud