aboutsummaryrefslogtreecommitdiff
path: root/sh.Linux/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh.Linux/init.sh')
-rwxr-xr-xsh.Linux/init.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/sh.Linux/init.sh b/sh.Linux/init.sh
index e45c734a..bec25640 100755
--- a/sh.Linux/init.sh
+++ b/sh.Linux/init.sh
@@ -207,14 +207,14 @@ else
fi
# Mount required stuff as user may not have then in /etc/fstab
-for x in "devpts /dev/pts" "tmpfs /dev/shm ,nodev"; do
+for x in "devpts /dev/pts 0755 ,gid=5,mode=0620" "tmpfs /dev/shm 1777 ,nodev"; do
set -- ${x}
grep -Eq "[[:space:]]+$1$" /proc/filesystems || continue
mountinfo -q "$2" && continue
if [ ! -d "$2" ] && \
[ "${devfs}" = "yes" -o "${udev}" = "yes" ]; then
- mkdir -p "$2" >/dev/null 2>/dev/null || \
+ mkdir -m "$3" -p "$2" >/dev/null 2>/dev/null || \
ewarn "Could not create $2!"
fi
@@ -223,7 +223,7 @@ for x in "devpts /dev/pts" "tmpfs /dev/shm ,nodev"; do
if fstabinfo --quiet "$2"; then
try mount -n "$2"
else
- try mount -n -t "$1" -o gid=5,mode=0620,noexec,nosuid"$3" none "$2"
+ try mount -n -t "$1" -o noexec,nosuid"$4" none "$2"
fi
eend $?
fi