From 2d7f57d462d90ff33e4e0a4e36290fc5f90fc9d6 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 22 Oct 2007 20:24:00 +0000 Subject: Fix init.sh for shm again --- sh.Linux/init.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sh.Linux/init.sh') 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 -- cgit v1.2.3