]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - rc.d/rc.sysinit
clean /tmp if it is not on tmpfs
[projects/rc-scripts.git] / rc.d / rc.sysinit
index ac216d694adf89ca57b403bc2f1371c90952d34c..28da1a9428d7c1761ae91c3abf6da141c7aadcab 100755 (executable)
@@ -969,9 +969,8 @@ else
 fi
 
 # Clean /tmp
-if is_yes "$CLEAN_TMP"; then
-       # XXX LC_ALL needed here
-       rm -rf /tmp/* /tmp/.[a-zA-Z0-9]*
+if is_yes "$CLEAN_TMP" && ! is_fsmounted tmpfs /tmp; then
+       LC_ALL=C rm -rf /tmp/* /tmp/.[a-zA-Z0-9]*
 fi
 
 # System protected dirs
This page took 0.032894 seconds and 4 git commands to generate.