From 60068d0a01a543f98477530e538420365663cccb Mon Sep 17 00:00:00 2001 From: Michael Gebetsroither Date: Thu, 4 Oct 2007 13:09:10 +0200 Subject: [PATCH] added manpage for grml-addtun --- docs/Makefile | 45 ++++++++++++++++++++++++++++++++ docs/grml-addtun.8.txt | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 docs/Makefile create mode 100644 docs/grml-addtun.8.txt diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..f5c1319 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,45 @@ +install_ = install + +etc = ${DESTDIR}/etc/ +usr = ${DESTDIR}/usr +usrbin = $(usr)/bin +usrsbin = $(usr)/sbin +usrshare = $(usr)/share/$(name_) +usrdoc = $(usr)/share/doc/$(name_) +man8 = $(usr)/share/man/man8/ +man1 = $(usr)/share/man/man1/ + + +%.html : %.txt ; + asciidoc -b xhtml11 $^ + +%.gz : %.txt ; + asciidoc -d manpage -b docbook $^ + #sed -i 's///g' `echo $^ |sed -e 's/.txt/.xml/'` + xsltproc -nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl `echo $^ |sed -e 's/.txt/.xml/'` &>/dev/null + gzip -f --best `echo $^ |sed -e 's/.txt//'` + + +MANPAGES = grml-addtun.8 + +all: doc + +doc: doc_man doc_html +doc_html: $(addsuffix .html, $(MANPAGES)) +doc_man: $(addsuffix .gz, $(MANPAGES)) + + +install: all + # install .html dokumentation + $(install_) -d -m 755 $(usrdoc) + @for i in $(MANPAGES); do \ + $(install_) -vm 644 $$i.html $(usrdoc); done + # install manpages + $(install_) -d -m 755 $(man8) + @for i in $(MANPAGES); do \ + $(install_) -vm 644 $$i.gz $(man8); done + +clean: + @for i in $(MANPAGES); do \ + rm -fv $$i.html $$i.xml $$i.gz $$i; done + diff --git a/docs/grml-addtun.8.txt b/docs/grml-addtun.8.txt new file mode 100644 index 0000000..701d437 --- /dev/null +++ b/docs/grml-addtun.8.txt @@ -0,0 +1,71 @@ +GRML-ADDTUN(1) +============== +Michael Gebetsroither + + +NAME +---- +grml-addtun - creates persistent tun/tap devices with bridge handling + + +SYNOPSIS +-------- +*grml-addtun* [OPTIONS] ... + + +DESCRIPTION +----------- +This manual page documents briefly the *grml-addtun* command. + +*grml-addtun* is a script to create persistent tun/tap devices with integrated +bridge handling. + + +OPTIONS +------- +*-d*:: +Delete the given tun/tap devices and remove them from the bridge (if given with -b). + +*-u *:: +Make tun devices useable from without special permissions. + +*-g *:: +Make tun devices useable from without special permissions. + +*-b *:: +Remove/delete given tun devices from . + +*-a*:: +Automatic bridge handling, eg. create bridge if not existing and delete it if +no more devices are part of it after removing the given tun/tap devices. + +*-h*:: +Show the help message. + + +EXAMPLES +-------- +Config sampe for /etc/network/interfaces with bridge and tun/tap devices. +This creates tap0..tap3 which are part of bridge vnet. + +------------- + auto vnet + iface vnet inet static + post-up /root/bin/grml-addtun -u einstein -b vnet tap{0..3} + pre-down /root/bin/grml-addtun -u einstein -b vnet -d tap{0..3} + bridge_ports none + address 192.168.10.1 + netmask 255.255.255.0 +------------- + + +SEE ALSO +-------- +grml-ap(8), grml-bridge(8), grml-router(8) + + +AUTHOR +------ +grml-addtun was written by Michael Gebetsroither + +This manual page was written by Michael Gebetsroither -- 2.1.4