Move Core Update 96 to oldcore

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2015-12-22 11:11:24 +00:00
parent c15da8c3b5
commit ea155e2d2b
17 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
boot/config.txt
etc/alternatives
etc/collectd.custom
etc/ipsec.conf
etc/ipsec.secrets
etc/ipsec.user.conf
etc/ipsec.user.secrets
etc/localtime
etc/shadow
etc/snort/snort.conf
etc/ssh/ssh_config
etc/ssh/sshd_config
etc/ssl/openssl.cnf
etc/sudoers
etc/sysconfig/firewall.local
etc/sysconfig/rc.local
etc/udev/rules.d/30-persistent-network.rules
srv/web/ipfire/html/proxy.pac
var/ipfire/dma
var/ipfire/time
var/ipfire/ovpn
var/lib/alternatives
var/log/cache
var/state/dhcp/dhcpd.leases
var/updatecache

View File

@@ -0,0 +1 @@
../../../common/curl

View File

@@ -0,0 +1 @@
../../../common/dma

View File

@@ -0,0 +1 @@
../../../common/dnsmasq

View File

@@ -0,0 +1,17 @@
etc/system-release
etc/issue
etc/rc.d/init.d/snort
etc/vnstat.conf
etc/rc.d/init.d/cleanfs
etc/rc.d/init.d/collectd
etc/rc.d/init.d/functions
etc/rc.d/init.d/vnstat
etc/rc.d/rc0.d/K51vnstat
etc/rc.d/rc3.d/S01vnstat
etc/rc.d/rc6.d/K51vnstat
opt/pakfire/lib/functions.pl
srv/web/ipfire/cgi-bin/connections.cgi
srv/web/ipfire/cgi-bin/routing.cgi
usr/lib/firewall/rules.pl
usr/sbin/convert-portfw
var/ipfire/general-functions.pl

View File

@@ -0,0 +1 @@
../../../../common/i586/grub

View File

@@ -0,0 +1 @@
../../../../common/i586/openssl-sse2

View File

@@ -0,0 +1 @@
../../../../common/i586/strongswan-padlock

View File

@@ -0,0 +1 @@
../../../common/libnet

View File

@@ -0,0 +1 @@
../../../common/mdadm

View File

@@ -0,0 +1 @@
../../../common/ntp

View File

@@ -0,0 +1 @@
../../../common/openssl

View File

@@ -0,0 +1 @@
../../../common/rrdtool

View File

@@ -0,0 +1 @@
../../../common/strongswan

View File

@@ -0,0 +1 @@
../../../../common/x86_64/grub

View File

@@ -0,0 +1 @@
DEPS=""

View File

@@ -0,0 +1,104 @@
#!/bin/bash
############################################################################
# #
# This file is part of the IPFire Firewall. #
# #
# IPFire is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 3 of the License, or #
# (at your option) any later version. #
# #
# IPFire is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with IPFire; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
# #
# Copyright (C) 2015 IPFire-Team <info@ipfire.org>. #
# #
############################################################################
#
. /opt/pakfire/lib/functions.sh
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
# Remove old core updates from pakfire cache to save space...
core=96
for (( i=1; i<=$core; i++ ))
do
rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
done
# Stop services
/etc/init.d/fcron stop
/etc/init.d/collectd stop
qosctrl stop
# Backup RRDs
if [ -d "/var/log/rrd.bak" ]; then
# Umount ramdisk
umount -l "/var/log/rrd"
rm -f "/var/log/rrd"
mv "/var/log/rrd.bak/vnstat" "/var/log/vnstat"
mv "/var/log/rrd.bak" "/var/log/rrd"
fi
# Remove old scripts
rm -f /etc/rc.d/init.d/tmpfs \
/etc/rc.d/rc0.d/K85tmpfs \
/etc/rc.d/rc3.d/S01tmpfs \
/etc/rc.d/rc6.d/K85tmpfs
# Extract files
extract_files
# Update Language cache
# /usr/local/bin/update-lang-cache
# Keep (almost) old ramdisk behaviour
if [ ! -e "/etc/sysconfig/ramdisk" ]; then
echo "RAMDISK_MODE=2" > /etc/sysconfig/ramdisk
fi
if [ -L "/var/spool/cron" ]; then
rm -f /var/spool/cron
mv /var/log/rrd/cron /var/spool/cron
chown cron:cron /var/spool/cron
# Add new crontab entries
sed -i /var/spool/cron/root.orig -e "/tmpfs backup/d"
grep -q "collectd backup" /var/spool/cron/root.orig || cat <<EOF >> /var/spool/cron/root.orig
# Backup ramdisks if necessary
%nightly,random * 23-4 /etc/init.d/collectd backup &>/dev/null
%nightly,random * 23-4 /etc/init.d/vnstat backup &>/dev/null
EOF
fcrontab -z
fi
# Start services
/etc/init.d/collectd start
/etc/init.d/vnstat start
/etc/init.d/fcron start
/etc/init.d/dnsmasq restart
qosctrl start
# Disable loading of cryptodev
sed -e "s/^cryptodev/# &/g" -i /etc/sysconfig/modules
# This update need a reboot...
#touch /var/run/need_reboot
# Finish
/etc/init.d/fireinfo start
sendprofile
# Update grub config to display new core version
if [ -e /boot/grub/grub.cfg ]; then
grub-mkconfig -o /boot/grub/grub.cfg
fi
sync
# Don't report the exitcode last command
exit 0