firmware: also clean downloaded packages after install

This commit is contained in:
Franco Fichtner 2015-05-04 10:35:57 +02:00
parent 783363d0ba
commit e40c87ca6a
2 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ echo
# upgrade all packages if possible
pkg upgrade -y
pkg autoremove -y
pkg clean -y
echo

View File

@ -42,6 +42,7 @@ if [ -z "$pkg_running" ]; then
# update all installed packages
pkg upgrade -y >> ${PKG_PROGRESS_FILE}
pkg autoremove -y >> ${PKG_PROGRESS_FILE}
pkg clean -y >> ${PKG_PROGRESS_FILE}
# restart the web server
/usr/local/etc/rc.restart_webgui >> ${PKG_PROGRESS_FILE}
# if we can update base, we'll do that as well