From bc369085c75ebca4d5c7aa803d98fef6b92c2622 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 9 Apr 2008 00:06:50 +0000 Subject: More ltsp fixes. --- init.d/bootmisc.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'init.d/bootmisc.in') diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index d2cae840..419a19c5 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -18,12 +18,13 @@ dir_writeable() cleanup_tmp_dir() { - local dir=$1 + local dir="$1" if ! [ -d "${dir}" ]; then mkdir -p "${dir}" || return $? fi dir_writeable "${dir}" || return 1 + chmod +t "${dir}" cd "${dir}" if yesno ${wipe_tmp:-${WIPE_TMP:-yes}}; then ebegin "Wiping ${dir} directory" @@ -112,7 +113,6 @@ start() for tmp in ${wipe_tmp_dirs-/tmp}; do cleanup_tmp_dir "${tmp}" done - chmod +t /tmp /var/tmp if dir_writeable /tmp; then # Make sure our X11 stuff have the correct permissions @@ -133,6 +133,7 @@ start() fi rm -f /etc/nologin + return 0 } stop() -- cgit v1.2.3