X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Frootfiles%2Fcore%2F46%2Fupdate.sh;h=3ac423d4da00a4b94eada12e46143cb9e567cf47;hp=7416512449c05c04defe5c7a0992bddfc472c4da;hb=1b3cc041d962178eb18c9e5188f248502be9aec9;hpb=3fe1243490b163c9db665e577087aa499a9eb292 diff --git a/config/rootfiles/core/46/update.sh b/config/rootfiles/core/46/update.sh index 7416512449..3ac423d4da 100644 --- a/config/rootfiles/core/46/update.sh +++ b/config/rootfiles/core/46/update.sh @@ -17,7 +17,7 @@ # along with IPFire; if not, write to the Free Software # # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # # -# Copyright (C) 2010 IPFire-Team . # +# Copyright (C) 2011 IPFire-Team . # # # ############################################################################ # @@ -25,8 +25,13 @@ /usr/local/bin/backupctrl exclude >/dev/null 2>&1 # -# Remove core updates from pakfire cache to save space... -rm -f /var/cache/pakfire/core-upgrade-*.ipfire +# Remove old core updates from pakfire cache to save space... +core=46 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire +done + # #Stop services @@ -54,5 +59,7 @@ depmod 2.6.32.28-ipfire-xen >/dev/null 2>&1 # #Finish +/etc/init.d/fireinfo start +sendprofile #Don't report the exitcode last command exit 0