2 Commits

Author SHA1 Message Date
0cb5c0e5d6 Use a faster command 2019-03-09 20:07:37 +07:00
32cf88bd2b Add CLEANTMP option 2019-03-08 20:11:10 +07:00
2 changed files with 5 additions and 0 deletions

View File

@@ -26,3 +26,7 @@
# /sys/fs/cgroup in hybrid or legacy mode # /sys/fs/cgroup in hybrid or legacy mode
# HAVE_CONTROLLER1_GROUPS="true" # HAVE_CONTROLLER1_GROUPS="true"
# Set to 'yes' to remove all files from /tmp
# CLEANTMP="no"

View File

@@ -13,6 +13,7 @@ cleaning(){
fi fi
rm -f /etc/nologin /forcefsck /forcequotacheck /fastboot rm -f /etc/nologin /forcefsck /forcequotacheck /fastboot
[ "$CLEANTMP" == "yes" ] && find /tmp -maxdepth 1 -name '[!ajlq\.]*' -exec rm -rf -- {} +
} }
case "$1" in case "$1" in