aboutsummaryrefslogtreecommitdiff
path: root/system/zramen
diff options
context:
space:
mode:
Diffstat (limited to 'system/zramen')
-rw-r--r--system/zramen/README10
-rw-r--r--system/zramen/zramen.SlackBuild6
2 files changed, 10 insertions, 6 deletions
diff --git a/system/zramen/README b/system/zramen/README
index 66dfa7b306b9..5fe20b1f72d8 100644
--- a/system/zramen/README
+++ b/system/zramen/README
@@ -1,5 +1,9 @@
Zramen is a simple bash script that makes managing zram much easier.
This SlackBuild provides the zramen script but also a service script
-compatible with sysvinit. To enable it, just mark the service as
-executable and you can tweak the algorithm, size, and more that
-it will use in /etc/default/zramen.
+compatible with sysvinit.
+
+To enable zramen on startup, add the following to /etc/rc.d/rc.local:
+if [ -x /etc/rc.d/rc.zramen ]; then
+ # Start Zramen
+ /etc/rc.d/rc.zramen start
+fi
diff --git a/system/zramen/zramen.SlackBuild b/system/zramen/zramen.SlackBuild
index 8df06d0eaf9a..d6285b65f8c2 100644
--- a/system/zramen/zramen.SlackBuild
+++ b/system/zramen/zramen.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for zramen
-# Copyright 2023 Hunter Ellett <hunter2k1@disroot.org>
+# Copyright 2023, 2024 Hunter Ellett <hunter2k1@disroot.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -53,8 +53,8 @@ mkdir -p "$PKG/etc/default"
cd "$PKG"
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
install -m 755 "$PKG/$PRGNAM-$VERSION/$PRGNAM" "$PKG/usr/bin/$PRGNAM"
-install -m 660 "$PKG/$PRGNAM-$VERSION/sv/$PRGNAM/conf" "$PKG/etc/default/$PRGNAM"
-install -m 660 "$CWD/rc.$PRGNAM" "$PKG/etc/rc.d"
+install -m 666 "$PKG/$PRGNAM-$VERSION/sv/$PRGNAM/conf" "$PKG/etc/default/$PRGNAM"
+install -m 666 "$CWD/rc.$PRGNAM" "$PKG/etc/rc.d"
cp "$CWD/$PRGNAM.SlackBuild" "$PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild"
cp "$CWD/README" "$PKG/usr/doc/$PRGNAM-$VERSION/README"