summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-02-05 05:54:02 +0000
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-02-05 05:54:02 +0000
commit434e9b63f914fa9550d45569f4e2696946b5ace5 (patch)
treee4aa1831df596e28370d4edbef2600ab208e8ebb
parenta08025b5ff69959c0b684c6a1d37c10a2a0bcdd4 (diff)
systemd-mgmt-swap: fix regex line terminators
-rw-r--r--config-mgmt-swap.PKGBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/config-mgmt-swap.PKGBUILD b/config-mgmt-swap.PKGBUILD
index 05bf209..3705a1d 100644
--- a/config-mgmt-swap.PKGBUILD
+++ b/config-mgmt-swap.PKGBUILD
@@ -1,5 +1,5 @@
. ${BUILDFILE%/*}/common.sh
-pkgver=20170204.2
+pkgver=20170205
package() {
preamble
@@ -11,13 +11,13 @@ depends=(systemd-swap)
# systemd-swap:
#
# - zswap: compress pages on disk
-# - zram: compress pages in ram
+# - zram: compress pages in RAM
# - swapfc: in emergencies, allocate space in the filesystem to swap
# to
add-file -m755 usr/share/holo/files/10-"$pkgname"/etc/systemd/swap.conf.holoscript <<EOF
#!/bin/sh
sed '
- s/^# Zswap$/& (compress pages on disk)/
+ s/^# Zswap\$/& (compress pages on disk)/
s/zswap_enabled=.*/zswap_enabled=1/
/zswap_zpool=z3fold/ {
a# The systemd-swap default '\''z3fold'\'' was added in Linux 4.7; because we
@@ -26,7 +26,7 @@ sed '
azswap_zpool=zbud
}
- /^# ZRam/s/.*/& (compress pages in RAM)/
+ /^# ZRam\$/s/.*/& (compress pages in RAM)/
s/zram_enabled=.*/zram_enabled=1/
s/swapfc_enabled=.*/swapfc_enabled=1/