From bfb8ef49c58bfc78fbd356c8fdd5c1a54a804ae6 Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Tue, 27 Jul 2010 22:33:26 +0200 Subject: [PATCH 1/1] Named control files and (unused) manpage correctly --- debian/manpage.8.ex | 42 ------------------------------------------ debian/postinst | 42 ++++++++++++++++++++++++++++++++++++++++++ debian/postinst.ex | 42 ------------------------------------------ debian/prerm | 41 +++++++++++++++++++++++++++++++++++++++++ debian/prerm.ex | 41 ----------------------------------------- mtetherd.8 | 42 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 125 insertions(+), 125 deletions(-) delete mode 100644 debian/manpage.8.ex create mode 100644 debian/postinst delete mode 100644 debian/postinst.ex create mode 100644 debian/prerm delete mode 100644 debian/prerm.ex create mode 100644 mtetherd.8 diff --git a/debian/manpage.8.ex b/debian/manpage.8.ex deleted file mode 100644 index cc5cfef..0000000 --- a/debian/manpage.8.ex +++ /dev/null @@ -1,42 +0,0 @@ -.\" Hey, EMACS: -*- nroff -*- -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH MTETHERD 8 "July 23, 2010" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -mtetherd \- Maemo tethering daemon -.SH SYNOPSIS -.B start mtetherd -.br -.B stop mtetherd -.SH DESCRIPTION -.B mtetherd -allows you to use your N900 as an Internet router. -Once a USB network or Bluetooth PAN connection is opened to the device, -it will automatically configure networking and start a dnsmasq instance -that serves DHCP requests and forwards DNS queries. -You can also use it to automatically configure network interfaces -for development. -.SH IP ADDRESSES -.SS USB -N900: 192.168.253.254 -.br -Host: 192.168.253.1 - 192.168.253.253 -.SS Bluetooth -N900: 192.168.254.254 -.br -Host: 192.168.254.1 - 192.168.254.253 -.SH AUTHOR -mtetherd was written by Gregor Riepl . diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..47c10de --- /dev/null +++ b/debian/postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for mtetherd +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + start mtetherd + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/postinst.ex b/debian/postinst.ex deleted file mode 100644 index 47c10de..0000000 --- a/debian/postinst.ex +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# postinst script for mtetherd -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-remove' -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - configure) - start mtetherd - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 0000000..7c63929 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,41 @@ +#!/bin/sh +# prerm script for mtetherd +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + stop mtetherd + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/prerm.ex b/debian/prerm.ex deleted file mode 100644 index 7c63929..0000000 --- a/debian/prerm.ex +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# prerm script for mtetherd -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `remove' -# * `upgrade' -# * `failed-upgrade' -# * `remove' `in-favour' -# * `deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - remove|upgrade|deconfigure) - stop mtetherd - ;; - - failed-upgrade) - ;; - - *) - echo "prerm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/mtetherd.8 b/mtetherd.8 new file mode 100644 index 0000000..cc5cfef --- /dev/null +++ b/mtetherd.8 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH MTETHERD 8 "July 23, 2010" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +mtetherd \- Maemo tethering daemon +.SH SYNOPSIS +.B start mtetherd +.br +.B stop mtetherd +.SH DESCRIPTION +.B mtetherd +allows you to use your N900 as an Internet router. +Once a USB network or Bluetooth PAN connection is opened to the device, +it will automatically configure networking and start a dnsmasq instance +that serves DHCP requests and forwards DNS queries. +You can also use it to automatically configure network interfaces +for development. +.SH IP ADDRESSES +.SS USB +N900: 192.168.253.254 +.br +Host: 192.168.253.1 - 192.168.253.253 +.SS Bluetooth +N900: 192.168.254.254 +.br +Host: 192.168.254.1 - 192.168.254.253 +.SH AUTHOR +mtetherd was written by Gregor Riepl . -- 1.7.9.5