summaryrefslogtreecommitdiff
path: root/static/netbsd/man1/rfilter.1
blob: 3943860642452d760505e4f6d08d2313ff99f55a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: rfilter.1,v 1.2 2017/05/09 23:26:49 kamil Exp $

If you don't already have bzip2 and bzcat installed, this example
won't work.

Use the following configuration file (also in
/usr/share/examples/mount_portal/rfilter.1.conf):

bzcat/	rfilter	bzcat/	bzcat %s

Mount this configuration file, with a command like:
% mkdir portal
% mount_portal `pwd`/myconf `pwd`/portal

Now create a bzip2 file, and test whether it all works:
% printf "This is\na test\nfile\n" >/tmp/bziptest
% bzip2 /tmp/bziptest
% cat portal/bzcat/tmp/bziptest.bz2