Commit graph

27 commits

Author SHA1 Message Date
Scott B
205ea1ec5b Update gitignore 2021-12-04 01:51:11 -08:00
Scott B
b80f27a945 zram-swap.sh: increase swap priority
Increase zram swap priority from 5 to 15 as Arch uses swap prio 10 by
default for swap partitions
2021-08-19 05:47:04 -07:00
Scott B
dc77af4a6c Added config file option for debugging 2021-08-15 23:01:03 -07:00
Scott B
e1780c39e2 Update README.md; move PKGBUILD to arch-packaging branch 2021-08-15 22:33:13 -07:00
Scott B
5758ac0e2b housekeeping: update gitignore 2021-08-09 16:21:33 -07:00
Scott B
867269f244 Updated readme, added PKGBUILD for Arch 2021-07-19 00:21:15 -07:00
Scott B
51e3bb56fa Update README; prep for v02 2021-01-13 10:35:43 -08:00
klement01
2cbd617ed2 Fixed sleep crashing the script when running it in some locales.
awk, and by extension the calc function, both return a number with a decimal separator defined by LC_NUMERIC.
In locales such as France and Germany, this meant calc would return a comma separated decimal.
This caused the script to fail when reaching the sleep command, because it can only parse dot separated decimals.
To fix this, awk in the calc function is forced to use LC_NUMERIC=C (portable locale), which does use dot separated decimals.
2020-09-05 22:26:59 +00:00
Scott B
6439599996 zram-swap enable discard on swap 2020-09-05 22:26:59 +00:00
Scott B
d61589e010 zram-swap; minor fixup 2020-09-05 22:26:59 +00:00
Scott B
3fb8f6ecf4 Update README 2020-07-04 22:10:45 +00:00
Scott B
7cd2823cf7 service/config: add vim modelines 2020-07-01 08:59:54 +00:00
Scott B
8db82aac4d rewrite config
improved documentation, moved most common config options up front
2020-07-01 08:59:54 +00:00
Scott B
3b958f366f simplify total memory check 2020-07-01 08:59:54 +00:00
Scott B
ce84101e54 improve pattern matching 2020-07-01 08:59:54 +00:00
Scott B
741060a3e0 install.sh: reword config section 2020-07-01 08:59:54 +00:00
Scott B
644dfbecad Updated README 2020-07-01 08:59:54 +00:00
Scott B
abad0ad267 readability, cleanup
cleanup unused old calc code
clarify comments
fixup service file syntax
shellcheck code cleanup; mute a couple of false positives
2020-07-01 08:59:54 +00:00
Scott B
d70751d8d6 Bugfix for the bugfix; ugh 2020-01-22 20:00:47 -08:00
Scott B
d0444de2ee bugfix for awk emitting scientific notation
awk spits out scientific notation on some machines, bc should be stable
2020-01-19 19:56:00 -08:00
Scott B
50b261159c Updated README 2020-01-19 12:41:04 -08:00
Scott B
84cbc70c4d install.sh: finished config file install routine; code cleanup 2020-01-19 12:40:58 -08:00
Scott B
bfec2c31de draft posix compliance; install.sh: added uninstall routine 2020-01-19 12:34:16 -08:00
Scott B
69f77e7e91 Support fixed-size swaps. TODO: don't blind overwrite config file 2020-01-03 19:02:15 -08:00
Scott B
b26c3ac79b Small changes to 'set -u' handling, a bit of tidying and cleanup 2020-01-01 07:56:25 -08:00
Scott B
4241a70d94 Initial code push 2020-01-01 07:55:27 -08:00
Scott B
461049a206
Initial commit 2019-12-22 22:59:31 -08:00