init scripts: Avoid error messages during cleaning up tmp directory

This commit is contained in:
Matthias Strubel 2017-12-03 09:15:53 +01:00
parent 183b43db48
commit e4fc86ce73
3 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ CHANGELOG
* [Fix] [OpenWrt] extendRoot: Patch broken handling of PKG_ROOT in /lib/functions.sh
* [Fix] [OpenWrt] package dependencies: Fix dependency recursive issues
* [Fix] [RPi] Enable cronie for startup, which was missing
* [Fix] Removed unecessary error messages from cleaning up tmp folder
* [Changed] [OpenWrt] box-installer: grab new tmp logfile , var/log/messages was removed
* [Changed] [OpenWrt] box-installer: run opkg without signature file, like imagebuilder does
* [Changed] [OpenWrt] box-installer: Add a better trigger for extendRoot (delayed)

View File

@ -91,7 +91,7 @@ case "$1" in
$PIRATEBOX/bin/hooks/hook_piratebox_start.sh "$CONF"
echo "Empty tmp folder"
find $PIRATEBOX/tmp/ -exec rm {} \;
find $PIRATEBOX/tmp/ -mindepth 1 -exec rm {} \;
# Captive Portal Housekeeping file in /tmp (ram)
"$PIRATEBOX/bin/captive_notify_lease.sh" refresh

View File

@ -84,7 +84,7 @@ case "$1" in
$PIRATEBOX/bin/hooks/hook_piratebox_start.sh "$CONF"
echo "Empty tmp folder"
find $PIRATEBOX/tmp/ -exec rm {} \;
find $PIRATEBOX/tmp/ -mindepth 1 -exec rm {} \;
# Captive Portal Housekeeping file in /tmp (ram)
"$PIRATEBOX/bin/captive_notify_lease.sh" refresh