]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/blob - config/rootfiles/core/171/update.sh
3a8f7b676e6d51fffa22ed59874ad4f142463fde
[people/mfischer/ipfire-2.x.git] / config / rootfiles / core / 171 / update.sh
1 #!/bin/bash
2 ############################################################################
3 # #
4 # This file is part of the IPFire Firewall. #
5 # #
6 # IPFire is free software; you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation; either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # IPFire is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with IPFire; if not, write to the Free Software #
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
19 # #
20 # Copyright (C) 2022 IPFire-Team <info@ipfire.org>. #
21 # #
22 ############################################################################
23 #
24 . /opt/pakfire/lib/functions.sh
25 /usr/local/bin/backupctrl exclude >/dev/null 2>&1
26
27 core=171
28
29 # Remove old core updates from pakfire cache to save space...
30 for (( i=1; i<=$core; i++ )); do
31 rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
32 done
33
34 # Stop services
35 /etc/rc.d/init.d/squid stop
36 /etc/rc.d/init.d/openvpn stop
37
38 # Remove files
39 rm -rvf \
40 /lib/firmware/3com/3C359.bin \
41 /lib/firmware/TDA7706_OM_v2.5.1_boot.txt \
42 /lib/firmware/TDA7706_OM_v3.0.2_boot.txt \
43 /lib/firmware/atmsar11.fw \
44 /lib/firmware/bnx2/bnx2-mips-06-4.6.16.fw \
45 /lib/firmware/bnx2/bnx2-mips-06-5.0.0.j3.fw \
46 /lib/firmware/bnx2/bnx2-mips-06-5.0.0.j6.fw \
47 /lib/firmware/bnx2/bnx2-mips-06-6.0.15.fw \
48 /lib/firmware/bnx2/bnx2-mips-06-6.2.1.fw \
49 /lib/firmware/bnx2/bnx2-mips-09-4.6.17.fw \
50 /lib/firmware/bnx2/bnx2-mips-09-5.0.0.j15.fw \
51 /lib/firmware/bnx2/bnx2-mips-09-5.0.0.j3.fw \
52 /lib/firmware/bnx2/bnx2-mips-09-5.0.0.j9.fw \
53 /lib/firmware/bnx2/bnx2-mips-09-6.0.17.fw \
54 /lib/firmware/bnx2/bnx2-mips-09-6.2.1.fw \
55 /lib/firmware/bnx2/bnx2-mips-09-6.2.1a.fw \
56 /lib/firmware/bnx2/bnx2-rv2p-06-4.6.16.fw \
57 /lib/firmware/bnx2/bnx2-rv2p-06-5.0.0.j3.fw \
58 /lib/firmware/bnx2/bnx2-rv2p-09-4.6.15.fw \
59 /lib/firmware/bnx2/bnx2-rv2p-09-5.0.0.j10.fw \
60 /lib/firmware/bnx2/bnx2-rv2p-09-5.0.0.j3.fw \
61 /lib/firmware/bnx2/bnx2-rv2p-09ax-5.0.0.j10.fw \
62 /lib/firmware/bnx2/bnx2-rv2p-09ax-5.0.0.j3.fw \
63 /lib/firmware/bnx2x-e1-4.8.53.0.fw \
64 /lib/firmware/bnx2x-e1-5.2.13.0.fw \
65 /lib/firmware/bnx2x-e1-5.2.7.0.fw \
66 /lib/firmware/bnx2x-e1h-4.8.53.0.fw \
67 /lib/firmware/bnx2x-e1h-5.2.13.0.fw \
68 /lib/firmware/bnx2x-e1h-5.2.7.0.fw \
69 /lib/firmware/bnx2x/bnx2x-e1-6.0.34.0.fw \
70 /lib/firmware/bnx2x/bnx2x-e1-6.2.5.0.fw \
71 /lib/firmware/bnx2x/bnx2x-e1-6.2.9.0.fw \
72 /lib/firmware/bnx2x/bnx2x-e1-7.0.20.0.fw \
73 /lib/firmware/bnx2x/bnx2x-e1-7.0.23.0.fw \
74 /lib/firmware/bnx2x/bnx2x-e1-7.0.29.0.fw \
75 /lib/firmware/bnx2x/bnx2x-e1-7.10.51.0.fw \
76 /lib/firmware/bnx2x/bnx2x-e1-7.12.30.0.fw \
77 /lib/firmware/bnx2x/bnx2x-e1-7.2.16.0.fw \
78 /lib/firmware/bnx2x/bnx2x-e1-7.2.51.0.fw \
79 /lib/firmware/bnx2x/bnx2x-e1-7.8.17.0.fw \
80 /lib/firmware/bnx2x/bnx2x-e1-7.8.19.0.fw \
81 /lib/firmware/bnx2x/bnx2x-e1-7.8.2.0.fw \
82 /lib/firmware/bnx2x/bnx2x-e1h-6.0.34.0.fw \
83 /lib/firmware/bnx2x/bnx2x-e1h-6.2.5.0.fw \
84 /lib/firmware/bnx2x/bnx2x-e1h-6.2.9.0.fw \
85 /lib/firmware/bnx2x/bnx2x-e1h-7.0.20.0.fw \
86 /lib/firmware/bnx2x/bnx2x-e1h-7.0.23.0.fw \
87 /lib/firmware/bnx2x/bnx2x-e1h-7.0.29.0.fw \
88 /lib/firmware/bnx2x/bnx2x-e1h-7.10.51.0.fw \
89 /lib/firmware/bnx2x/bnx2x-e1h-7.12.30.0.fw \
90 /lib/firmware/bnx2x/bnx2x-e1h-7.2.16.0.fw \
91 /lib/firmware/bnx2x/bnx2x-e1h-7.2.51.0.fw \
92 /lib/firmware/bnx2x/bnx2x-e1h-7.8.17.0.fw \
93 /lib/firmware/bnx2x/bnx2x-e1h-7.8.19.0.fw \
94 /lib/firmware/bnx2x/bnx2x-e1h-7.8.2.0.fw \
95 /lib/firmware/bnx2x/bnx2x-e2-6.0.34.0.fw \
96 /lib/firmware/bnx2x/bnx2x-e2-6.2.5.0.fw \
97 /lib/firmware/bnx2x/bnx2x-e2-6.2.9.0.fw \
98 /lib/firmware/bnx2x/bnx2x-e2-7.0.20.0.fw \
99 /lib/firmware/bnx2x/bnx2x-e2-7.0.23.0.fw \
100 /lib/firmware/bnx2x/bnx2x-e2-7.0.29.0.fw \
101 /lib/firmware/bnx2x/bnx2x-e2-7.10.51.0.fw \
102 /lib/firmware/bnx2x/bnx2x-e2-7.12.30.0.fw \
103 /lib/firmware/bnx2x/bnx2x-e2-7.2.16.0.fw \
104 /lib/firmware/bnx2x/bnx2x-e2-7.2.51.0.fw \
105 /lib/firmware/bnx2x/bnx2x-e2-7.8.17.0.fw \
106 /lib/firmware/bnx2x/bnx2x-e2-7.8.19.0.fw \
107 /lib/firmware/bnx2x/bnx2x-e2-7.8.2.0.fw \
108 /lib/firmware/cbfw-3.2.1.1.bin \
109 /lib/firmware/cbfw-3.2.3.0.bin \
110 /lib/firmware/ct2fw-3.2.1.1.bin \
111 /lib/firmware/ct2fw-3.2.3.0.bin \
112 /lib/firmware/ctfw-3.2.1.1.bin \
113 /lib/firmware/ctfw-3.2.3.0.bin \
114 /lib/firmware/intel/ice/ddp/ice-1.3.28.0.pkg \
115 /lib/firmware/intelliport2.bin \
116 /lib/firmware/tr_smctr.bin \
117 /usr/bin/perl5.32* \
118 /usr/lib/libbfd-2.37.so \
119 /usr/lib/libbind9-9.16.31.so \
120 /usr/lib/libdns-9.16.31.so \
121 /usr/lib/libefiboot.so.1.37 \
122 /usr/lib/libefivar.so.1.37 \
123 /usr/lib/libhogweed.so.6.4 \
124 /usr/lib/libirs-9.16.31.so \
125 /usr/lib/libisc-9.16.31.so \
126 /usr/lib/libisccc-9.16.31.so \
127 /usr/lib/libisccfg-9.16.31.so \
128 /usr/lib/libnettle.so.8.4 \
129 /usr/lib/libns-9.16.31.so \
130 /usr/lib/libopcodes-2.37.so \
131 /usr/lib/perl5/5.32* \
132 /usr/lib/perl5/site_perl/5.32*
133
134 # Extract files
135 extract_files
136
137 # update linker config
138 ldconfig
139
140 # Update Language cache
141 /usr/local/bin/update-lang-cache
142
143 # Filesytem cleanup
144 /usr/local/bin/filesystem-cleanup
145
146 # Start services
147 /etc/init.d/squid start
148 /etc/init.d/openvpn start
149
150 # This update needs a reboot...
151 touch /var/run/need_reboot
152
153 # Finish
154 /etc/init.d/fireinfo start
155 sendprofile
156
157 # Update grub config to display new core version
158 if [ -e /boot/grub/grub.cfg ]; then
159 grub-mkconfig -o /boot/grub/grub.cfg
160 fi
161
162 sync
163
164 # Don't report the exitcode last command
165 exit 0