Skip to content

Commit edbac13

Browse files
authored
Update patch.sh
1 parent 321e40b commit edbac13

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

patch.sh

+21-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ declare -A binhash_version_list=(
1919
["c2f07f4cebf0bfb63e3ca38f811fd5b6112a797e"]="7.0.1-42216-0_7.0.1-42218-3"
2020
["796ac7fab2dcad7978a0e8ae48abc9150aba916c"]="7.1-42661-0_7.1-42661-0"
2121
["22445f5b0d8b6714954b50930c47b8805cf32b98"]="7.1-42661-0_7.1-42661-0"
22-
["18461b62813166652fd64a96e06237fde81925f7"]="7.1.1-42962-2"
22+
["18461b62813166652fd64a96e06237fde81925f7"]="7.1.1-42962-0_7.1.1-42962-6"
23+
["d316d5b2b080346b4bc197ad5ad7994ac043a15d"]="7.2-64570-0_7.2-64570-1"
24+
["a205aa337d808213cf6d4d839b035cde0237b424"]="7.2.1-69057-0_7.2.1-69057-3"
2325
)
2426

2527
declare -A patchhash_binhash_list=(
@@ -32,6 +34,8 @@ declare -A patchhash_binhash_list=(
3234
["06d543b2aab5ea73600ca96497febdad96dc7864"]="796ac7fab2dcad7978a0e8ae48abc9150aba916c"
3335
["3a5ed18dc41ff243f3481b6e3cf4770651df0b54"]="22445f5b0d8b6714954b50930c47b8805cf32b98"
3436
["4bfa2a72da607752435e432545f98f1a0b3815a8"]="18461b62813166652fd64a96e06237fde81925f7"
37+
["8ffe49d91dc0fcd3268ff1afcbc9132d1ae634d1"]="d316d5b2b080346b4bc197ad5ad7994ac043a15d"
38+
["1f4491bf5f27f0719ddebdcab6ff4eff56c64b2c"]="a205aa337d808213cf6d4d839b035cde0237b424"
3539
)
3640

3741
declare -A binhash_patch_list=(
@@ -44,6 +48,8 @@ declare -A binhash_patch_list=(
4448
["796ac7fab2dcad7978a0e8ae48abc9150aba916c"]="000035b0: 74cd4889efe8f623000084c0eb004c8d\n000040a0: fdffff4c89efe80519000084c0eb0048"
4549
["22445f5b0d8b6714954b50930c47b8805cf32b98"]="00003850: e7e89a27000084c0eb00488dac249000\n00004340: fdffff4c89efe8a51c000084c0eb0048"
4650
["18461b62813166652fd64a96e06237fde81925f7"]="000038e0: e7e89a27000084c0eb00488dac249000\n000043d0: fdffff4c89efe8a51c000084c0eb0048"
51+
["d316d5b2b080346b4bc197ad5ad7994ac043a15d"]="00004220: 08fdffffe87722000084c090e9000000\n00004390: ffe80a21000084c090e900000000488b"
52+
["a205aa337d808213cf6d4d839b035cde0237b424"]="00004220: 08fdffffe87722000084c090e9000000\n00004390: ffe80a21000084c090e900000000488b"
4753
)
4854

4955
declare -a binpath_list=()
@@ -170,6 +176,14 @@ declare -a versions_list=(
170176
"7.1.1 42962-2"
171177
"7.1.1 42962-3"
172178
"7.1.1 42962-4"
179+
"7.1.1 42962-5"
180+
"7.1.1 42962-6"
181+
"7.2 64570-0"
182+
"7.2 64570-1"
183+
"7.2.1 69057-0"
184+
"7.2.1 69057-1"
185+
"7.2.1 69057-2"
186+
"7.2.1 69057-3"
173187
)
174188

175189
#functions
@@ -279,11 +293,14 @@ patch () {
279293
if [ ! -e "$conf_path/$conf_file" ] ; then
280294
mkdir -p $conf_path
281295
echo "$conf_string" > "$conf_path/$conf_file"
296+
chattr +i "$conf_path/$conf_file"
282297
echo "Spoofed activation.conf created successfully"
283298
exit 0
284299
else
300+
chattr -i "$conf_path/$conf_file"
285301
rm "$conf_path/$conf_file"
286302
echo "$conf_string" > "$conf_path/$conf_file"
303+
chattr +i "$conf_path/$conf_file"
287304
echo "Spoofed activation.conf created successfully"
288305
exit 0
289306
fi
@@ -306,11 +323,14 @@ patch () {
306323
if [ ! -e "$conf_path/$conf_file" ] ; then
307324
mkdir -p $conf_path
308325
echo "$conf_string" > "$conf_path/$conf_file"
326+
chattr +i "$conf_path/$conf_file"
309327
echo "Spoofed activation.conf created successfully"
310328
exit 0
311329
else
330+
chattr -i "$conf_path/$conf_file"
312331
rm "$conf_path/$conf_file"
313332
echo "$conf_string" > "$conf_path/$conf_file"
333+
chattr +i "$conf_path/$conf_file"
314334
echo "Spoofed activation.conf created successfully"
315335
exit 0
316336
fi

0 commit comments

Comments
 (0)