Skip to content

Commit

Permalink
v2021.11.23 (202111230)
Browse files Browse the repository at this point in the history
- Updated default config, flashable zip generator and donation links.
  • Loading branch information
VR-25 committed Nov 23, 2021
1 parent bdb5602 commit 4a4841d
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: VR25 # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: https://paypal.me/vr25xda/ # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

custom: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&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']
1 change: 1 addition & 0 deletions META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ patch_cfg() {
if [ $config_ver -lt 0202110290 ]; then
sed -i -e '1iconfig_ver=202110290\n' -e '/^comp_a/s/=.*/=auto/' -e '/^vm=/s/e=200\"/e=200 page-cluster=0\"/' $cfg
fi
[ $config_ver -lt 0202111230 ] && sed -i -e '/^config_ver=/s/=.*/=202111230/' -e 's/ vfs_cache_pressure=200//' $cfg
fi
else
install -m 644 $src/zram-swap-manager.conf $cfg
Expand Down
9 changes: 4 additions & 5 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h2 id="config">Config</h2>
/etc/zram-swap-manager.conf
</code></pre>
<h2 id="default-config">Default Config</h2>
<pre><code>config_ver=202110290 # used for patching; do not modify!
<pre><code>config_ver=202111230 # used for patching; do not modify!

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

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

# android's low memory killer (deprecated in favor of lmkd in recent OS versions)
# write /sys/module/lowmemorykiller/parameters/minfree &quot;CUSTOM PARAMETERS GO HERE&quot;
Expand Down Expand Up @@ -164,10 +163,10 @@ <h2 id="benchmarks">Benchmarks</h2>
</table>
<h2 id="donations">Donations</h2>
<ul>
<li><a href="https://app.airtm.com/send-or-request/send">Airtm username: ivandro863auzqg</a></li>
<li><a href="https://app.airtm.com/send-or-request/send">Airtm, username: ivandro863auzqg</a></li>
<li><a href="https://liberapay.com/vr25/">Liberapay</a></li>
<li><a href="https://patreon.com/vr25/">Patreon</a></li>
<li><a href="https://paypal.me/vr25xda/">PayPal</a></li>
<li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;[email protected]&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>
</ul>

</body>
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/etc/zram-swap-manager.conf

## Default Config
config_ver=202110290 # used for patching; do not modify!
config_ver=202111230 # used for patching; do not modify!

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

# [vm="swappiness=80 vfs_cache_pressure=200 page-cluster=0"]
vm="swappiness=80 vfs_cache_pressure=200 page-cluster=0"
vm="swappiness=80 page-cluster=0"

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

## Donations
- [Airtm username: ivandro863auzqg](https://app.airtm.com/send-or-request/send)
- [Airtm, username: ivandro863auzqg](https://app.airtm.com/send-or-request/send)
- [Liberapay](https://liberapay.com/vr25/)
- [Patreon](https://patreon.com/vr25/)
- [PayPal](https://paypal.me/vr25xda/)
- [PayPal or Credit/Debit Card](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&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)
1 change: 1 addition & 0 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ patch_cfg() {
if [ $config_ver -lt 0202110290 ]; then
sed -i -e '1iconfig_ver=202110290\n' -e '/^comp_a/s/=.*/=auto/' -e '/^vm=/s/e=200\"/e=200 page-cluster=0\"/' $cfg
fi
[ $config_ver -lt 0202111230 ] && sed -i -e '/^config_ver=/s/=.*/=202111230/' -e 's/ vfs_cache_pressure=200//' $cfg
fi
else
install -m 644 $src/zram-swap-manager.conf $cfg
Expand Down
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ patch_cfg() {
if [ $config_ver -lt 0202110290 ]; then
sed -i -e '1iconfig_ver=202110290\n' -e '/^comp_a/s/=.*/=auto/' -e '/^vm=/s/e=200\"/e=200 page-cluster=0\"/' $cfg
fi
[ $config_ver -lt 0202111230 ] && sed -i -e '/^config_ver=/s/=.*/=202111230/' -e 's/ vfs_cache_pressure=200//' $cfg
fi
else
install -m 644 $src/zram-swap-manager.conf $cfg
Expand Down
18 changes: 14 additions & 4 deletions zip.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#!/usr/bin/env sh

{ cd "${0%/*}"
cp -u install.sh customize.sh
cp -u install.sh META-INF/com/google/android/update-binary; } 2>/dev/null
zip -r9 zsm-magisk-$(date +%Y%m%d%H%M%S).zip * .git* -x \*.zip -x .git/\*
echo
trap 'e=$?; echo; exit $e' EXIT
cd "${0%/*}" 2>/dev/null

for i in *.sh; do
sh -n $i || exit
done

cp -u install.sh customize.sh 2>/dev/null
cp -u install.sh META-INF/com/google/android/update-binary 2>/dev/null

filename=zsm-$(date +%Y.%m.%d.%H.%M.%S).zip
echo $filename
zip -r9 $filename * .git* -x \*.zip -x .git/\* -x '_*/*'
7 changes: 3 additions & 4 deletions zram-swap-manager.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env sh

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

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

: ${vm:=swappiness=80 vfs_cache_pressure=200 page-cluster=0}
: ${vm:=swappiness=80 page-cluster=0}

case $1 in
-*c) shift; edit_config "$@";;
Expand Down

0 comments on commit 4a4841d

Please sign in to comment.