mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Move Core Updates 70-74 to oldcore directory.
This commit is contained in:
17
config/rootfiles/oldcore/73/exclude
Normal file
17
config/rootfiles/oldcore/73/exclude
Normal file
@@ -0,0 +1,17 @@
|
||||
srv/web/ipfire/html/proxy.pac
|
||||
boot/config.txt
|
||||
etc/udev/rules.d/30-persistent-network.rules
|
||||
etc/collectd.custom
|
||||
etc/shadow
|
||||
etc/ipsec.conf
|
||||
etc/ipsec.secrets
|
||||
etc/ipsec.user.conf
|
||||
etc/ipsec.user.secrets
|
||||
var/log/cache
|
||||
var/updatecache
|
||||
etc/localtime
|
||||
var/ipfire/ovpn
|
||||
etc/ssh/ssh_config
|
||||
etc/ssh/sshd_config
|
||||
etc/ssl/openssl.cnf
|
||||
var/state/dhcp/dhcpd.leases
|
||||
1
config/rootfiles/oldcore/73/filelists/GeoIP
Normal file
1
config/rootfiles/oldcore/73/filelists/GeoIP
Normal file
@@ -0,0 +1 @@
|
||||
usr/local/share/GeoIP/GeoIP.dat
|
||||
1
config/rootfiles/oldcore/73/filelists/HTML-Template
Symbolic link
1
config/rootfiles/oldcore/73/filelists/HTML-Template
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/HTML-Template
|
||||
3
config/rootfiles/oldcore/73/filelists/armv5tel/ath-modul
Normal file
3
config/rootfiles/oldcore/73/filelists/armv5tel/ath-modul
Normal file
@@ -0,0 +1,3 @@
|
||||
lib/modules/3.2.48-ipfire-omap/kernel/drivers/net/wireless/ath/ath.ko
|
||||
lib/modules/3.2.48-ipfire-kirkwood/kernel/drivers/net/wireless/ath/ath.ko
|
||||
lib/modules/3.2.48-ipfire-rpi/kernel/drivers/net/wireless/ath/ath.ko
|
||||
15
config/rootfiles/oldcore/73/filelists/files
Normal file
15
config/rootfiles/oldcore/73/filelists/files
Normal file
@@ -0,0 +1,15 @@
|
||||
etc/system-release
|
||||
etc/issue
|
||||
etc/rc.d/init.d/dnsmasq
|
||||
etc/rc.d/init.d/squid
|
||||
srv/web/ipfire/cgi-bin/logs.cgi/proxylog.dat
|
||||
srv/web/ipfire/cgi-bin/netinternal.cgi
|
||||
srv/web/ipfire/cgi-bin/proxy.cgi
|
||||
srv/web/ipfire/cgi-bin/routing.cgi
|
||||
srv/web/ipfire/cgi-bin/wirelessclient.cgi
|
||||
srv/web/ipfire/cgi-bin/vpnmain.cgi
|
||||
srv/web/ipfire/html/redirect.cgi
|
||||
srv/web/ipfire/html/redirect-templates/
|
||||
var/ipfire/header.pl
|
||||
var/ipfire/langs
|
||||
var/ipfire/proxy/advanced/useragents
|
||||
2
config/rootfiles/oldcore/73/filelists/hwdata
Normal file
2
config/rootfiles/oldcore/73/filelists/hwdata
Normal file
@@ -0,0 +1,2 @@
|
||||
usr/share/hwdata/pci.ids
|
||||
usr/share/hwdata/usb.ids
|
||||
3
config/rootfiles/oldcore/73/filelists/i586/ath-modul
Normal file
3
config/rootfiles/oldcore/73/filelists/i586/ath-modul
Normal file
@@ -0,0 +1,3 @@
|
||||
lib/modules/2.6.32.61-ipfire-xen/kernel/drivers/net/wireless/ath/ath.ko
|
||||
lib/modules/3.2.48-ipfire/kernel/drivers/net/wireless/ath/ath.ko
|
||||
lib/modules/3.2.48-ipfire-pae/kernel/drivers/net/wireless/ath/ath.ko
|
||||
1
config/rootfiles/oldcore/73/filelists/openssh
Symbolic link
1
config/rootfiles/oldcore/73/filelists/openssh
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/openssh
|
||||
1
config/rootfiles/oldcore/73/filelists/php
Symbolic link
1
config/rootfiles/oldcore/73/filelists/php
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/php
|
||||
1
config/rootfiles/oldcore/73/filelists/squid
Symbolic link
1
config/rootfiles/oldcore/73/filelists/squid
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/squid
|
||||
1
config/rootfiles/oldcore/73/meta
Normal file
1
config/rootfiles/oldcore/73/meta
Normal file
@@ -0,0 +1 @@
|
||||
DEPS=""
|
||||
81
config/rootfiles/oldcore/73/update.sh
Normal file
81
config/rootfiles/oldcore/73/update.sh
Normal file
@@ -0,0 +1,81 @@
|
||||
#!/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) 2013 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=73
|
||||
for (( i=1; i<=$core; i++ ))
|
||||
do
|
||||
rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
|
||||
done
|
||||
|
||||
|
||||
#
|
||||
#Stop services
|
||||
/etc/init.d/squid stop
|
||||
|
||||
|
||||
#
|
||||
#Extract files
|
||||
extract_files
|
||||
|
||||
if [ -e "/var/ipfire/proxy/enable" ] || [ -e "/var/ipfire/proxy/enable_blue" ]; then
|
||||
(
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/proxy/advanced/settings)
|
||||
|
||||
TRANSPARENT_PORT="$(( ${PROXY_PORT} + 1 ))"
|
||||
echo "TRANSPARENT_PORT=${TRANSPARENT_PORT}" >> /var/ipfire/proxy/advanced/settings
|
||||
)
|
||||
fi
|
||||
|
||||
# Regenerate squid configuration files.
|
||||
/srv/web/ipfire/cgi-bin/proxy.cgi
|
||||
|
||||
#
|
||||
#Start services
|
||||
/etc/init.d/squid start
|
||||
|
||||
#
|
||||
#Update Language cache
|
||||
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
|
||||
|
||||
# Remove invalid fetchmail symlinks when postfix is installed.
|
||||
if [ ! -e "/etc/rc.d/init.d/fetchmail" ]; then
|
||||
rm -f /etc/rc.d/rc*.d/*fetchmail
|
||||
fi
|
||||
|
||||
sync
|
||||
|
||||
# This update need a reboot...
|
||||
touch /var/run/need_reboot
|
||||
|
||||
#
|
||||
#Finish
|
||||
/etc/init.d/fireinfo start
|
||||
sendprofile
|
||||
#Don't report the exitcode last command
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user