mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Move Core Update 96 to oldcore
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
25
config/rootfiles/oldcore/96/exclude
Normal file
25
config/rootfiles/oldcore/96/exclude
Normal 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
|
||||
1
config/rootfiles/oldcore/96/filelists/curl
Symbolic link
1
config/rootfiles/oldcore/96/filelists/curl
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/curl
|
||||
1
config/rootfiles/oldcore/96/filelists/dma
Symbolic link
1
config/rootfiles/oldcore/96/filelists/dma
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/dma
|
||||
1
config/rootfiles/oldcore/96/filelists/dnsmasq
Symbolic link
1
config/rootfiles/oldcore/96/filelists/dnsmasq
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/dnsmasq
|
||||
17
config/rootfiles/oldcore/96/filelists/files
Normal file
17
config/rootfiles/oldcore/96/filelists/files
Normal 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
|
||||
1
config/rootfiles/oldcore/96/filelists/i586/grub
Symbolic link
1
config/rootfiles/oldcore/96/filelists/i586/grub
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/i586/grub
|
||||
1
config/rootfiles/oldcore/96/filelists/i586/openssl-sse2
Symbolic link
1
config/rootfiles/oldcore/96/filelists/i586/openssl-sse2
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/i586/openssl-sse2
|
||||
1
config/rootfiles/oldcore/96/filelists/i586/strongswan-padlock
Symbolic link
1
config/rootfiles/oldcore/96/filelists/i586/strongswan-padlock
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/i586/strongswan-padlock
|
||||
1
config/rootfiles/oldcore/96/filelists/libnet
Symbolic link
1
config/rootfiles/oldcore/96/filelists/libnet
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/libnet
|
||||
1
config/rootfiles/oldcore/96/filelists/mdadm
Symbolic link
1
config/rootfiles/oldcore/96/filelists/mdadm
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/mdadm
|
||||
1
config/rootfiles/oldcore/96/filelists/ntp
Symbolic link
1
config/rootfiles/oldcore/96/filelists/ntp
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/ntp
|
||||
1
config/rootfiles/oldcore/96/filelists/openssl
Symbolic link
1
config/rootfiles/oldcore/96/filelists/openssl
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/openssl
|
||||
1
config/rootfiles/oldcore/96/filelists/rrdtool
Symbolic link
1
config/rootfiles/oldcore/96/filelists/rrdtool
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/rrdtool
|
||||
1
config/rootfiles/oldcore/96/filelists/strongswan
Symbolic link
1
config/rootfiles/oldcore/96/filelists/strongswan
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/strongswan
|
||||
1
config/rootfiles/oldcore/96/filelists/x86_64/grub
Symbolic link
1
config/rootfiles/oldcore/96/filelists/x86_64/grub
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../common/x86_64/grub
|
||||
1
config/rootfiles/oldcore/96/meta
Normal file
1
config/rootfiles/oldcore/96/meta
Normal file
@@ -0,0 +1 @@
|
||||
DEPS=""
|
||||
104
config/rootfiles/oldcore/96/update.sh
Normal file
104
config/rootfiles/oldcore/96/update.sh
Normal 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
|
||||
Reference in New Issue
Block a user