ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit c41c38649c98242c4f592b067caac09dac62ea30
parent 9938320eeabc1845110d7e7dfadeb74f274b51aa
Author: Carlos J. Torres <vlaadbrain@gmail.com>
Date:   Sat,  8 Feb 2014 22:24:17 -0500

prefer swap device option

Diffstat:
Mswapon.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/swapon.c b/swapon.c @@ -10,7 +10,7 @@ static void usage(void) { - eprintf("usage: %s [-d] [-a] device\n", argv0); + eprintf("usage: %s [-dp] [-a] device\n", argv0); } int @@ -28,6 +28,9 @@ main(int argc, char *argv[]) case 'd': flags |= SWAP_FLAG_DISCARD; break; + case 'p': + flags |= SWAP_FLAG_PREFER; + break; default: usage(); } ARGEND;