Skip to content

Commit 4a4841d

Browse files
committed
v2021.11.23 (202111230)
- Updated default config, flashable zip generator and donation links.
1 parent bdb5602 commit 4a4841d

File tree

8 files changed

+29
-20
lines changed

8 files changed

+29
-20
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
99
liberapay: VR25 # Replace with a single Liberapay username
1010
issuehunt: # Replace with a single IssueHunt username
1111
otechie: # Replace with a single Otechie username
12-
custom: https://paypal.me/vr25xda/ # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13-
12+
custom: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=iprj25@gmail.com&lc=US&item_name=VR25+is+creating+free+and+open+source+software.+Donate+to+suppport+their+work.&no_note=0&cn=&currency_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

META-INF/com/google/android/update-binary

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ patch_cfg() {
2020
if [ $config_ver -lt 0202110290 ]; then
2121
sed -i -e '1iconfig_ver=202110290\n' -e '/^comp_a/s/=.*/=auto/' -e '/^vm=/s/e=200\"/e=200 page-cluster=0\"/' $cfg
2222
fi
23+
[ $config_ver -lt 0202111230 ] && sed -i -e '/^config_ver=/s/=.*/=202111230/' -e 's/ vfs_cache_pressure=200//' $cfg
2324
fi
2425
else
2526
install -m 644 $src/zram-swap-manager.conf $cfg

README.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h2 id="config">Config</h2>
7777
/etc/zram-swap-manager.conf
7878
</code></pre>
7979
<h2 id="default-config">Default Config</h2>
80-
<pre><code>config_ver=202110290 # used for patching; do not modify!
80+
<pre><code>config_ver=202111230 # used for patching; do not modify!
8181

8282
comp_algorithm=auto # [auto] -&gt; zstd (288) | lz4 (210) | lzo-rle (212) | lzo (2011)
8383
comp_ratio=210 # [210], irrelevant when comp_algorithm=auto
@@ -92,8 +92,7 @@ <h2 id="default-config">Default Config</h2>
9292
low_load_threshold=0 # [0], %
9393
low_load_swappiness=100 # [100]
9494

95-
# [vm=&quot;swappiness=80 vfs_cache_pressure=200 page-cluster=0&quot;]
96-
vm=&quot;swappiness=80 vfs_cache_pressure=200 page-cluster=0&quot;
95+
vm=&quot;swappiness=80 page-cluster=0&quot;
9796

9897
# android's low memory killer (deprecated in favor of lmkd in recent OS versions)
9998
# write /sys/module/lowmemorykiller/parameters/minfree &quot;CUSTOM PARAMETERS GO HERE&quot;
@@ -164,10 +163,10 @@ <h2 id="benchmarks">Benchmarks</h2>
164163
</table>
165164
<h2 id="donations">Donations</h2>
166165
<ul>
167-
<li><a href="https://app.airtm.com/send-or-request/send">Airtm username: ivandro863auzqg</a></li>
166+
<li><a href="https://app.airtm.com/send-or-request/send">Airtm, username: ivandro863auzqg</a></li>
168167
<li><a href="https://liberapay.com/vr25/">Liberapay</a></li>
169168
<li><a href="https://patreon.com/vr25/">Patreon</a></li>
170-
<li><a href="https://paypal.me/vr25xda/">PayPal</a></li>
169+
<li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=iprj25@gmail.com&amp;lc=US&amp;item_name=VR25+is+creating+free+and+open+source+software.+Donate+to+suppport+their+work.&amp;no_note=0&amp;cn=&amp;currency_code=USD&amp;bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted">PayPal or Credit/Debit Card</a></li>
171170
</ul>
172171

173172
</body>

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/etc/zram-swap-manager.conf
4242

4343
## Default Config
44-
config_ver=202110290 # used for patching; do not modify!
44+
config_ver=202111230 # used for patching; do not modify!
4545

4646
comp_algorithm=auto # [auto] -> zstd (288) | lz4 (210) | lzo-rle (212) | lzo (2011)
4747
comp_ratio=210 # [210], irrelevant when comp_algorithm=auto
@@ -56,8 +56,7 @@
5656
low_load_threshold=0 # [0], %
5757
low_load_swappiness=100 # [100]
5858

59-
# [vm="swappiness=80 vfs_cache_pressure=200 page-cluster=0"]
60-
vm="swappiness=80 vfs_cache_pressure=200 page-cluster=0"
59+
vm="swappiness=80 page-cluster=0"
6160

6261
# android's low memory killer (deprecated in favor of lmkd in recent OS versions)
6362
# write /sys/module/lowmemorykiller/parameters/minfree "CUSTOM PARAMETERS GO HERE"
@@ -78,7 +77,7 @@
7877
| lzf 3.6 -1 | 2.077 | 400 MB/s | 860 MB/s |
7978

8079
## Donations
81-
- [Airtm username: ivandro863auzqg](https://app.airtm.com/send-or-request/send)
80+
- [Airtm, username: ivandro863auzqg](https://app.airtm.com/send-or-request/send)
8281
- [Liberapay](https://liberapay.com/vr25/)
8382
- [Patreon](https://patreon.com/vr25/)
84-
- [PayPal](https://paypal.me/vr25xda/)
83+
- [PayPal or Credit/Debit Card](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=iprj25@gmail.com&lc=US&item_name=VR25+is+creating+free+and+open+source+software.+Donate+to+suppport+their+work.&no_note=0&cn=&currency_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted)

customize.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ patch_cfg() {
2020
if [ $config_ver -lt 0202110290 ]; then
2121
sed -i -e '1iconfig_ver=202110290\n' -e '/^comp_a/s/=.*/=auto/' -e '/^vm=/s/e=200\"/e=200 page-cluster=0\"/' $cfg
2222
fi
23+
[ $config_ver -lt 0202111230 ] && sed -i -e '/^config_ver=/s/=.*/=202111230/' -e 's/ vfs_cache_pressure=200//' $cfg
2324
fi
2425
else
2526
install -m 644 $src/zram-swap-manager.conf $cfg

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ patch_cfg() {
2020
if [ $config_ver -lt 0202110290 ]; then
2121
sed -i -e '1iconfig_ver=202110290\n' -e '/^comp_a/s/=.*/=auto/' -e '/^vm=/s/e=200\"/e=200 page-cluster=0\"/' $cfg
2222
fi
23+
[ $config_ver -lt 0202111230 ] && sed -i -e '/^config_ver=/s/=.*/=202111230/' -e 's/ vfs_cache_pressure=200//' $cfg
2324
fi
2425
else
2526
install -m 644 $src/zram-swap-manager.conf $cfg

zip.sh

100644100755
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/usr/bin/env sh
22

3-
{ cd "${0%/*}"
4-
cp -u install.sh customize.sh
5-
cp -u install.sh META-INF/com/google/android/update-binary; } 2>/dev/null
6-
zip -r9 zsm-magisk-$(date +%Y%m%d%H%M%S).zip * .git* -x \*.zip -x .git/\*
3+
echo
4+
trap 'e=$?; echo; exit $e' EXIT
5+
cd "${0%/*}" 2>/dev/null
6+
7+
for i in *.sh; do
8+
sh -n $i || exit
9+
done
10+
11+
cp -u install.sh customize.sh 2>/dev/null
12+
cp -u install.sh META-INF/com/google/android/update-binary 2>/dev/null
13+
14+
filename=zsm-$(date +%Y.%m.%d.%H.%M.%S).zip
15+
echo $filename
16+
zip -r9 $filename * .git* -x \*.zip -x .git/\* -x '_*/*'

zram-swap-manager.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#!/usr/bin/env sh
22

3-
version="v2021.11.6-beta (202111060)"
3+
version="v2021.11.23 (202111230)"
44
info="zRAM Swap Manager $version
55
Copyright (C) 2021, VR25
6-
License: GPLv3+
7-
Donations: airtm:ivandro863auzqg liberapay.com/vr25 patreon.com/vr25 paypal.me/vr25xda"
6+
License: GPLv3+"
87

98
IFS="$(printf ' \t\n')"
109
temp_dir=/dev/.vr25/zram-swap-manager
@@ -194,7 +193,7 @@ done
194193
: ${low_load_threshold:=0}
195194
: ${low_load_swappiness:=100}
196195

197-
: ${vm:=swappiness=80 vfs_cache_pressure=200 page-cluster=0}
196+
: ${vm:=swappiness=80 page-cluster=0}
198197

199198
case $1 in
200199
-*c) shift; edit_config "$@";;

0 commit comments

Comments
 (0)