summaryrefslogtreecommitdiff
path: root/pcr/firejail/firejail.install
blob: ff9f47783a8c9f58ea9c9c3391b2e0796dc16223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
pre_upgrade() {
echo "Checking 33 firejail profiles for user modification, backing up as needed..."
	FilesToCheck=(
/etc/firejail/audacious.profile
/etc/firejail/bitlbee.profile
/etc/firejail/clementine.profile
/etc/firejail/conkeror.profile
/etc/firejail/deadbeef.profile
/etc/firejail/deluge.profile
/etc/firejail/disable-common.inc
/etc/firejail/disable-devel.inc
/etc/firejail/disable-mgmt.inc
/etc/firejail/disable-secret.inc
/etc/firejail/dnscrypt-proxy.profile
/etc/firejail/dropbox.profile
/etc/firejail/empathy.profile
/etc/firejail/evince.profile
/etc/firejail/fbreader.profile
/etc/firejail/filezilla.profile
/etc/firejail/firefox.profile
/etc/firejail/generic.profile
/etc/firejail/gnome-mplayer.profile
/etc/firejail/hexchat.profile
/etc/firejail/icecat.profile
/etc/firejail/icedove.profile
/etc/firejail/iceweasel.profile
/etc/firejail/login.users
/etc/firejail/midori.profile
/etc/firejail/nolocal.net
/etc/firejail/parole.profile
/etc/firejail/pidgin.profile
/etc/firejail/qbittorrent.profile
/etc/firejail/quassel.profile
/etc/firejail/rhythmbox.profile
/etc/firejail/rtorrent.profile
/etc/firejail/server.profile
/etc/firejail/thunderbird.profile
/etc/firejail/totem.profile
/etc/firejail/transmission-gtk.profile
/etc/firejail/transmission-qt.profile
/etc/firejail/unbound.profile
/etc/firejail/vlc.profile
/etc/firejail/webserver.net
/etc/firejail/weechat-curses.profile
/etc/firejail/weechat.profile
/etc/firejail/whitelist-common.inc
/etc/firejail/wine.profile
/etc/firejail/xchat.profile
)

OriginalFileHashes=(
'475365b623b1f879005476ca6ea5d6e6c17f1cfaeb81bade5d99256e86eb52592abb07fefd7b25dd02ac11fcc83f9b31ba7e5bb0124225b19f44d559d5aceb9e'
'272e06bda895dc0583f8ed487f3e204c581de331632ffbc48117b46d00d191cb3ab236ca9aa4602314b8f258c503c514443eb467ba94b489a22589b75d9b25ba'
'7c57c690f0e38b2095cff19d7460c4f833efa979a303d579d16ee306184ff3c9ea94b4e2ec926958354c42cb5c47ee53674d81ae6f8adcd1279c9e905c622d1f'
'6bf30e18a4e6cf02fcb3021378a7e8fe7edc1afe4b2012fbc567003d2f2446f7c0a4fc15b4c2a04c038d65393a9add1fc1fbcdecd7011c8fc496e6af5eee155e'
'd1e95c53bc19da0e644b4ebe5bd20fa5e9cc7862f2e07110d7ce4f9a45ddb679b38edfb9ff26c1ad6b0e49d359d15334995475004b2c5a1e1aeac40278bb4b2d'
'f6b7314406f0f72f5de616b1cfbe00455dc30d3524b7b6e8b247feb6b6391cf36c822ddf299db0184bc5c66ffccff58e996399de00a195e2ef0a60ea88cf26c2'
'5b8192bb3617e2f513fce21963cbb329cfc54ba855be6faee98943f632ee579191c14309018600460d128c7c6331a1cbc8b1d5ca9aaaad1c565bb264d479a70e'
'69a3deb638a2e9d418468e28c23553255f294010a9c1418c1adbc3e1397eea9f34b86d786efc78955965fb39bb5586ca2d727dcc6e0ac8e47994470ad8d3c984'
'14efe7280fb77093a22999739ce323e90fccdc2a43c6b1ead30d3b176decd7ca7f6ed79382c1b63e7b8a8a88f65e03198a40339a26dd6a28e68878c7afa97c66'
'b0e6b65d9e2c1be90989f0cafbded7c7ebc7a50fd22dccca2ecd16e45547e076ea4ce010e2e7156dce8796d0af6fd5cdf9067f51b9cc91ebd4c9f300f05dcc40'
'6aba29b3b68b7f96e90c28a4e31e9a4b2d00f07a9f49cb792da29531a56acb57b6d8ffade6661639ffaf0e844094647db5c3ecfcb1317095ab4f1655d511e3c6'
'43c2ed16340847121ef2adc91fcf836d46295918ffaa486eb4f3b007fb833007da1884b656bd7b13e0cad5ce6d2df16fe830c3ed7d41615800b4dbf62fde332f'
'1aed5fd7a711f68e1d1522be8caee86c8f0df2799b3d5e59abea96fa4c3424d5df393b549c15eff3ffe849a9ba3a2a96f1eb41ea9a4ef003a2344df15e107f8f'
'93f40b47b08eee43e02db3915ac8e1275114f754dc6b24707ad07d2007c4c9abd8a09984e4ce78fda25100908f863a4cba5d6256d227816af717510145366ed5'
'c4810f982f370f480f116eefe33bccd5f91a60f615a809b8c5e66db6c6e557f42cea07e66ddd41badad39a4e0a39cafc4fee82ad8aa61fe4fb6c6b2a3d812491'
'd635adcc12bdc92e9fae2ab7084c4506aa4f4687881478820f2c979de7d822d7ccb45bb6eee19923e498c163ceb7bf62e73d5ab362aa9c96b5d1df94e57c2124'
'1317fbf93f5c9e37c1706e8619d2e40fbe62a3b9772476fb5f65495a48d042139fa05e8691fb6d906bf6bdacd4a7e75c58fdfdc6f58ab05c2bafbf610649acc3'
'fb6c319412a8f5c45361354508d08a020df1798cb00fa3295be0df9eebd0dd7efe59189106402a6b8761afd11dff8bc438f7ac1c7de981a5bcebd0027e428ccc'
'3b3e54a9fc1e60da4082660b2f179a7667f79da1094325eb6979bf08a3f5a7dc2e54c28041363e7555f5b2eb4590810c20ec9e5914a6c1c4323a86727a01f8c9'
'f0127da75a98a89ef3236310efc1afbf003e5bab30ed3f5417f157e9f29614c20da093f4805f54d967ad20079710caaf86fd3b55b33d4dfa928ae8976085322a'
'81db63b03b1f950b1e7810fab38ce4fe5776f11e3036848da6298d9002b5c4683028d4fdd630db118d428fd91e5118872b5b2ccff9c82d02a966765efdb9dc17'
'9a8c4d7ce893340da2d9cc8237cecf8bca2865e5552747c480a1f803072960b7aa571b2693600076ea8800b86e1d0945d8a535fffcdbe9569b3820a477b155d2'
'8ded98eec8c11af8defef583227ea833beca534e5f2be48b52ec75152afddf14d78ba47442237e84eda8bb1b8361b1afecd63576f8ef6b18d50fb8c6559e8638'
'672fa8b25ed28a07efb41fad6415c9fa96ce4bf4f4a1a6412595afb309ef6c1e67033ee256f997c32e9abe25bd6a100160ff12f2235c9be289c223547d03ca95'
'92d90375a560f3d6c94b3cf6c2d0de06d8e76d8d40eb80ebaf85de844b323c0ec283bc9bca753b2bf301587dda5237883ccd6062f9d5e3c2e8dc7dc33476ce6a'
'0674dd401dbb0c205c94ad45ec1e92408122a6ee736e1b02fc19c75c1e30e4b278cbbbc9fef9a0b41de7d068e7eaedca231880315b85d11e9d36345d61b75d68'
'e3fabdd8bfba675b0ac4be8d9005e1bdc8d51d46178b71b6c33d9b0120eef7bde0b6750b5aae51825d3ce0e7d7da5cfbcf0f2b48db9e4f821ad182e0f29a2aad'
'6a2869827fb38740ef81b93c88880f55a3fb186a82ff6e0dc4142d1fd620d3eb53f8fb36e95482afea6b7865a9cf9d2a7dea172a90792ca37a24f0af6ed39b69'
'e18d294d10a103f1da5d27a12ee867c84920dcd081f7c4daa4e46f6722962a993c3c62295daaed4c19b928d336dda56d4f2ae75dd1c3d5c5f35f878ce76060f0'
'2278e3d1ec06e20c2aa7bcced46a5c01bf55f94d6e286f6433bf44177c912709e8d5e0a4c553b2a3af67dfdca6061e95eadfb648f4c606f0bd819b5fef1af03f'
'b8d8a9620a28b67752788c2af2fc0a63f479ea7424dadd9047a000f7782ae4e268ab42861c4f26707236df0c061f1e768f7d6fb580e027af10b9679a1bfb8eec'
'8f184d406828be02ce3c091cb2c0c9fb71526ce9907bd6b1685c8afe7d70d1627055c5702d2ffd2e3b41d084b0aefe87ad763bf8636ff518b2db029d45be4137'
'0fa8393eaa3c0e5514e44e42ed9f8085c2aa8ddfa799e4cdd19d1004c81692dc1baa8963aa75dfbb7e268c80636711a90110f365e2f3d0769d7fdf0b6aaac65e'
'a1074b8508b16a256cc3ffc561cc4ffa8661478865c9efa86de712ee7d890c2bacad05fa2fe7913a6c7f3e04ace90b2a29724938b28cb246626d15175b3e56ca'
'983f048d3627fbd22be0694f5a4dde1ff874e60206563addb0e2c52506229c36438e48ff8475fb27a388b33f3f93fc52a440e1b604e00610c799c8499cb55593'
'1683412211fb3260564f1e1ab231173c811cccd51ed5052b6bbac1b9575bbbe95bebd6f4536fe320449118e80c8dd9f138e6e45704f6629bf581bedf8daf7585'
'2fa037409a66280e5dd82c562b7f1b7c4048575d6f73bdde5fb62fb5c140ebcb7cb89945cfce6b0b13325426dcfaf52c1eb4805def47dd4a920ea0f8a9739cb9'
'16ac112b32941e7b0a6488e69790c286b4ed539b5c8c1b7c0ba76713b31472a260d4845a718738751c8e05a0599c57c9a882afcc7117f48e7d7d4aaaf9eb2a2f'
'c84cc10ee40620846fc0e852e78277afcd96251857f955973036b416f57e6c2c72a8631e1377d4bcea6409129ba909895f1437a81b71a93523463686fc0daba8'
'a889749dce2d9a7f624327780696a8444112b55c22d5a2506aaa5ee52f64bd028f6cbb7f6c9b39123565e7257935acaebf8a9d98460b1d25320cfd729c493450'
'28bcf7a38c8ad4e3b69e5ea6ae2b8d6058094af9ff214c918f46ad8ff1226f1b4bf3e4adaa9cd13241e6fe05559cf4d8029cd0c06f670b616465b5edb94d9a0b'
'd8bea2514a2733509081f0544dbb9ae6b65e401596a95cb5e32907517d5d1e734219e74b4ad158c730a89230d29cf77a3dff2aa0165a0e97e91bf592575d19ca'
'f966976284f051555dcb416f97189771b80f613d54165699be4443d1052a282b32d3a7c526c4523a719764d8c7dfa87fa0d9228c3c906a0c0cd68e9a2675c2e0'
'3eb64fda1003bcea210e021fc3aedcbf337d927edbc4f800d73d6d9ae0ac161d896973c3704070bf017adc8822e17126423a22da9b1c393278771fd07d97b734'
'728019aaae0eeb1920b290ab84da8b755ec160822e36efc13722a510cc3ebd67dd7c0251e0c89aaf31eb411fc82834ae08ba763365949e6ea0edc5b2d9ed53da'
)

## Uses above arrays to check if file's original hash matches, if not the file was edited, so we save a backup and notify the user.

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[0]} | awk '{print $1}')" = ${OriginalFileHashes[0]} ]] || { cat "${FilesToCheck[0]}" > "${FilesToCheck[0]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[0]}.pacsave"; } 

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[1]} | awk '{print $1}')" = ${OriginalFileHashes[1]} ]] || { cat "${FilesToCheck[1]}" > "${FilesToCheck[1]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[1]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[2]} | awk '{print $1}')" = ${OriginalFileHashes[2]} ]] || { cat "${FilesToCheck[2]}" > "${FilesToCheck[2]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[2]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[3]} | awk '{print $1}')" = ${OriginalFileHashes[3]} ]] || { cat "${FilesToCheck[3]}" > "${FilesToCheck[3]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[3]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[4]} | awk '{print $1}')" = ${OriginalFileHashes[4]} ]] || { cat "${FilesToCheck[4]}" > "${FilesToCheck[4]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[4]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[5]} | awk '{print $1}')" = ${OriginalFileHashes[5]} ]] || { cat "${FilesToCheck[5]}" > "${FilesToCheck[5]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[5]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[6]} | awk '{print $1}')" = ${OriginalFileHashes[6]} ]] || { cat "${FilesToCheck[6]}" > "${FilesToCheck[6]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[6]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[7]} | awk '{print $1}')" = ${OriginalFileHashes[7]} ]] || { cat "${FilesToCheck[7]}" > "${FilesToCheck[7]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[7]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[8]} | awk '{print $1}')" = ${OriginalFileHashes[8]} ]] || { cat "${FilesToCheck[8]}" > "${FilesToCheck[8]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[8]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[9]} | awk '{print $1}')" = ${OriginalFileHashes[9]} ]] || { cat "${FilesToCheck[9]}" > "${FilesToCheck[9]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[9]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[10]} | awk '{print $1}')" = ${OriginalFileHashes[10]} ]] || { cat "${FilesToCheck[10]}" > "${FilesToCheck[10]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[10]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[11]} | awk '{print $1}')" = ${OriginalFileHashes[11]} ]] || { cat "${FilesToCheck[11]}" > "${FilesToCheck[11]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[11]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[12]} | awk '{print $1}')" = ${OriginalFileHashes[12]} ]] || { cat "${FilesToCheck[12]}" > "${FilesToCheck[12]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[12]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[13]} | awk '{print $1}')" = ${OriginalFileHashes[13]} ]] || { cat "${FilesToCheck[13]}" > "${FilesToCheck[13]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[13]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[14]} | awk '{print $1}')" = ${OriginalFileHashes[14]} ]] || { cat "${FilesToCheck[14]}" > "${FilesToCheck[14]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[14]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[15]} | awk '{print $1}')" = ${OriginalFileHashes[15]} ]] || { cat "${FilesToCheck[15]}" > "${FilesToCheck[15]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[15]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[16]} | awk '{print $1}')" = ${OriginalFileHashes[16]} ]] || { cat "${FilesToCheck[16]}" > "${FilesToCheck[16]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[16]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[17]} | awk '{print $1}')" = ${OriginalFileHashes[17]} ]] || { cat "${FilesToCheck[17]}" > "${FilesToCheck[17]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[17]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[18]} | awk '{print $1}')" = ${OriginalFileHashes[18]} ]] || { cat "${FilesToCheck[18]}" > "${FilesToCheck[18]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[18]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[19]} | awk '{print $1}')" = ${OriginalFileHashes[19]} ]] || { cat "${FilesToCheck[19]}" > "${FilesToCheck[19]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[19]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[20]} | awk '{print $1}')" = ${OriginalFileHashes[20]} ]] || { cat "${FilesToCheck[20]}" > "${FilesToCheck[20]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[20]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[21]} | awk '{print $1}')" = ${OriginalFileHashes[21]} ]] || { cat "${FilesToCheck[21]}" > "${FilesToCheck[21]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[21]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[22]} | awk '{print $1}')" = ${OriginalFileHashes[22]} ]] || { cat "${FilesToCheck[22]}" > "${FilesToCheck[22]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[22]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[23]} | awk '{print $1}')" = ${OriginalFileHashes[23]} ]] || { cat "${FilesToCheck[23]}" > "${FilesToCheck[23]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[23]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[24]} | awk '{print $1}')" = ${OriginalFileHashes[24]} ]] || { cat "${FilesToCheck[24]}" > "${FilesToCheck[24]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[24]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[25]} | awk '{print $1}')" = ${OriginalFileHashes[25]} ]] || { cat "${FilesToCheck[25]}" > "${FilesToCheck[25]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[25]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[26]} | awk '{print $1}')" = ${OriginalFileHashes[26]} ]] || { cat "${FilesToCheck[26]}" > "${FilesToCheck[26]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[26]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[27]} | awk '{print $1}')" = ${OriginalFileHashes[27]} ]] || { cat "${FilesToCheck[27]}" > "${FilesToCheck[27]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[27]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[28]} | awk '{print $1}')" = ${OriginalFileHashes[28]} ]] || { cat "${FilesToCheck[28]}" > "${FilesToCheck[28]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[28]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[29]} | awk '{print $1}')" = ${OriginalFileHashes[29]} ]] || { cat "${FilesToCheck[29]}" > "${FilesToCheck[29]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[29]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[30]} | awk '{print $1}')" = ${OriginalFileHashes[30]} ]] || { cat "${FilesToCheck[30]}" > "${FilesToCheck[30]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[30]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[31]} | awk '{print $1}')" = ${OriginalFileHashes[31]} ]] || { cat "${FilesToCheck[31]}" > "${FilesToCheck[31]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[31]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[32]} | awk '{print $1}')" = ${OriginalFileHashes[32]} ]] || { cat "${FilesToCheck[32]}" > "${FilesToCheck[32]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[32]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[33]} | awk '{print $1}')" = ${OriginalFileHashes[33]} ]] || { cat "${FilesToCheck[33]}" > "${FilesToCheck[33]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[33]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[34]} | awk '{print $1}')" = ${OriginalFileHashes[34]} ]] || { cat "${FilesToCheck[34]}" > "${FilesToCheck[34]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[34]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[35]} | awk '{print $1}')" = ${OriginalFileHashes[35]} ]] || { cat "${FilesToCheck[35]}" > "${FilesToCheck[35]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[35]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[36]} | awk '{print $1}')" = ${OriginalFileHashes[36]} ]] || { cat "${FilesToCheck[36]}" > "${FilesToCheck[36]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[36]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[37]} | awk '{print $1}')" = ${OriginalFileHashes[37]} ]] || { cat "${FilesToCheck[37]}" > "${FilesToCheck[37]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[37]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[38]} | awk '{print $1}')" = ${OriginalFileHashes[38]} ]] || { cat "${FilesToCheck[38]}" > "${FilesToCheck[38]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[38]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[39]} | awk '{print $1}')" = ${OriginalFileHashes[39]} ]] || { cat "${FilesToCheck[39]}" > "${FilesToCheck[39]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[39]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[40]} | awk '{print $1}')" = ${OriginalFileHashes[40]} ]] || { cat "${FilesToCheck[40]}" > "${FilesToCheck[40]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[40]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[41]} | awk '{print $1}')" = ${OriginalFileHashes[41} ]] || { cat "${FilesToCheck[41]}" > "${FilesToCheck[41]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[41]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[42]} | awk '{print $1}')" = ${OriginalFileHashes[42]} ]] || { cat "${FilesToCheck[42]}" > "${FilesToCheck[42]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[42]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[43]} | awk '{print $1}')" = ${OriginalFileHashes[43]} ]] || { cat "${FilesToCheck[43]}" > "${FilesToCheck[43]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[43]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[44]} | awk '{print $1}')" = ${OriginalFileHashes[44]} ]] || { cat "${FilesToCheck[44]}" > "${FilesToCheck[44]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[44]}.pacsave"; }

[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[45]} | awk '{print $1}')" = ${OriginalFileHashes[45]} ]] || { cat "${FilesToCheck[45 ]}" > "${FilesToCheck[45]}.pacsave" ;  echo "Backup saved: ${FilesToCheck[45]}.pacsave"; }

echo "Done!"

}