From 372c16bc6848c69505d7a114c3b4c7750f597033 Mon Sep 17 00:00:00 2001 From: Hunter Ellett Date: Sat, 27 Jan 2024 08:01:29 +0700 Subject: [PATCH] system/zramen: Update README. Signed-off-by: Willy Sudiarto Raharjo --- system/zramen/README | 10 +++++++--- system/zramen/zramen.SlackBuild | 6 +++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/system/zramen/README b/system/zramen/README index 66dfa7b306..5fe20b1f72 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 8df06d0eaf..d6285b65f8 100644 --- a/system/zramen/zramen.SlackBuild +++ b/system/zramen/zramen.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for zramen -# Copyright 2023 Hunter Ellett +# Copyright 2023, 2024 Hunter Ellett # 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"