system/zramen: Update README.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Hunter Ellett 2024-01-27 08:01:29 +07:00 committed by Willy Sudiarto Raharjo
parent f872d312ed
commit 372c16bc68
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 10 additions and 6 deletions

View file

@ -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

View file

@ -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"