/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=45
+for (( i=1; i<=$core; i++ ))
+do
+ rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
+done
+
#
#Stop services
echo Stopping Proxy
sed "s|MAILTO=root|MAILTO=|g" < /var/spool/cron/root.orig > /var/tmp/root.tmp
fcrontab /var/tmp/root.tmp
+# Disable snort packet decoding alerts
+sed -i "s|#config disable_decode_alerts|config disable_decode_alerts|g" /etc/snort/snort.conf
+sed -i "s|#config disable_tcpopt_alerts|config disable_tcpopt_alerts|g" /etc/snort/snort.conf
+
#
#Start services
echo Starting Proxy