diff options
author | Roy Marples <roy@marples.name> | 2008-04-09 00:06:50 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-04-09 00:06:50 +0000 |
commit | bc369085c75ebca4d5c7aa803d98fef6b92c2622 (patch) | |
tree | 8cfcf13eb0865682d6ba630132ab323cdffcea84 | |
parent | 6d8b36e09db079a4ea65acc3f90d26c0633412db (diff) |
More ltsp fixes.
-rw-r--r-- | init.d/bootmisc.in | 5 |
1 files changed, 3 insertions, 2 deletions
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() |