--- pppstatus-0.4.2.orig/debian/dirs
+++ pppstatus-0.4.2/debian/dirs
@@ -0,0 +1,8 @@
+usr/bin
+usr/share/doc/pppstatus
+usr/share/doc/pppstatus/examples
+usr/share/man/man1
+etc/pppstatus
+etc/ppp/ip-up.d
+etc/ppp/ip-down.d
+var/log/pppstatus
--- pppstatus-0.4.2.orig/debian/down
+++ pppstatus-0.4.2/debian/down
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# pppstatus script to remove the flag file created when the ppp connection 
+# came up.
+
+test -f /usr/bin/pppstatus || exit 0
+/bin/rm -rf /var/run/$PPP_IFACE-up
--- pppstatus-0.4.2.orig/debian/prerm
+++ pppstatus-0.4.2/debian/prerm
@@ -0,0 +1,6 @@
+#! /bin/sh
+# Pppstatus prerm John Hasler May 2007
+# We want to get rid of these because the admin may
+# reinstall Pppstatus later and they would confuse it.
+    rm -rf /var/run/ppp[0-9]-up /var/run/ppp[1-9][0-9]-up
+
--- pppstatus-0.4.2.orig/debian/docs
+++ pppstatus-0.4.2/debian/docs
@@ -0,0 +1,4 @@
+README
+README.BR
+README.costs
+THANKS
--- pppstatus-0.4.2.orig/debian/menu
+++ pppstatus-0.4.2/debian/menu
@@ -0,0 +1,2 @@
+?package(pppstatus):needs="text" section="Applications/Network/Monitoring"\
+  title="pppstatus" command="/usr/bin/pppstatus"
--- pppstatus-0.4.2.orig/debian/up
+++ pppstatus-0.4.2/debian/up
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# pppstatus script to create a flag file when the ppp connection
+# comes up.
+
+test -f /usr/bin/pppstatus || exit 0
+/bin/touch /var/run/$PPP_IFACE-up
--- pppstatus-0.4.2.orig/debian/postrm
+++ pppstatus-0.4.2/debian/postrm
@@ -0,0 +1,9 @@
+#! /bin/sh
+if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
+if [ "$1" = "purge" ] ; then
+	update-rc.d pppstatus remove >/dev/null
+	rm -rf /etc/pppstatus
+        rm -rf /etc/ppp/ip-up.d/pppstatus
+        rm -rf /etc/ppp/ip-down.d/pppstatus
+
+fi
--- pppstatus-0.4.2.orig/debian/control
+++ pppstatus-0.4.2/debian/control
@@ -0,0 +1,17 @@
+Source: pppstatus
+Section: net
+Priority: optional
+Maintainer: John Hasler <jhasler@debian.org>
+Build-Depends: debhelper (>> 2.0.0), libncurses5-dev
+Standards-Version: 3.7.2.2
+
+Package: pppstatus
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: console-based PPP status monitor
+ PPPstatus is a console-based utility for displaying the
+ status of a PPP link, including connection verification,
+ connecting time, costs calculation, top speed, e-mail
+ check, ip address, graphical statistics, TX and RX leds,
+ interface selection, and more. It even supports xDSL
+ with pppoe.
--- pppstatus-0.4.2.orig/debian/pppstatus.1
+++ pppstatus-0.4.2/debian/pppstatus.1
@@ -0,0 +1,93 @@
+.TH PPPSTATUS 1 "Version 4.2-8" "Debian GNU/Linux"
+.SH NAME
+pppstatus \- console-based PPP status monitor
+.SH SYNOPSIS
+.B pppstatus
+[
+.B \-i <interface>
+] [
+.B \-v vga|mono
+] [
+.B \-s <speed>
+] [
+.B \-d <console>
+] [
+.B \--bytes
+] [
+.B \--packets
+]
+.ti +4n
+[
+.B \--errors
+] [
+.B \--time
+] [
+.B \--ipaddress
+] [
+.B \--costs
+]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B pppstatus
+command.
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.PP
+\fBpppstatus\fP is a console-based utility for displaying the
+status of a PPP link, including connection verification,
+connecting time, costs calculation, top speed, e-mail check,
+ip address, graphical statistics, TX and RX leds, interface
+selection, and more. It even supports xDSL with pppoe.
+.PP
+There are two config for pppstatus: /etc/pppstatus/pppstatus.cfg
+which is always read first, and ~/.pppstatus/pppstatus.cfg which is read
+when the user is not root.
+.PP
+For further hints see /usr/share/doc/pppstatus/README.
+.SH OPTIONS
+The following options are available.
+.IP "\fB-i <interface>\fR"
+Specify active interface to use.  <interface> is one of ppp0, ppp1, etc.
+.IP "\fB-v vga|mono\fR"
+Select video mode.
+.IP "\fB-s <speed> \fR"
+Set your online connection speed.  <speed> is 33.6, 56, etc.
+.IP "\fB-d <console>\fR"
+Make pppstatus a daemon.  <console> is the console to display on: 10 for
+/dev/tty/10, 11 for /dev/tty11, etc.
+.IP "\fB--bytes\fR"
+Display statistics about bytes transmitted and received.
+.IP "\fB--packets\fR"
+Display statistics about packets transmitted and received.
+.IP "\fB--errors\fR"
+Display error information.
+.IP "\fB--ipaddress\fR"
+Show your IP address.
+.IP "\fB--costs\fR"
+Calculate costs of current connection and costs of all connections on
+current month according to your provider's tariffs.
+.SH COMMANDS
+.IP "\fBr\fR"
+Redraw the display.
+.IP "\fBq\fR"
+Quit.
+.SH SIGNALS
+In daemon mode HUP causes the config file to be reread.  In other modes the
+program cleans up and exits.
+.SH FILES
+/etc/pppstatus/pppstatus.cfg,
+/etc/pppstatus/costs,
+/etc/pppstatus/no_pppstatus_on_boot,
+/var/log/pppstatus/pppstatus.<interface>.<date>,
+/var/log/pppstatus/total.costs.<date>,
+~/.pppstatus/pppstatus.cfg,
+~/.pppstatus/costs,
+~/.pppstatus/pppstatus.<interface>.<date>,
+~/.pppstatus/total.costs.<date>
+.SH SEE ALSO
+.BR /usr/share/doc/pppstatus/README.
+.SH AUTHOR
+This manual page was written by Dr. Guenter Bechly <gbechly@debian.org> (with
+improvements by Carlos Valdivia Yag\[:u]e <valyag@teleline.es>), for the Debian
+GNU/Linux system (but may be used by others).  Extensive changes by John
+Hasler <john@dhh.gt.org> 2002-2004.
--- pppstatus-0.4.2.orig/debian/compat
+++ pppstatus-0.4.2/debian/compat
@@ -0,0 +1 @@
+5
--- pppstatus-0.4.2.orig/debian/rules
+++ pppstatus-0.4.2/debian/rules
@@ -0,0 +1,79 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#/usr/bin/docbook-to-man debian/pppstatus.sgml > pppstatus.1
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean
+	dh_installdirs
+
+	# Add here commands to install the package into debian/pppstatus.
+#	$(MAKE) install DESTDIR=$(CURDIR)/debian/pppstatus
+	install -d -o root -g root -m 755 debian/pppstatus/usr/bin
+	install -p -o 0 -g 0 -m 755 pppstatus debian/pppstatus/usr/bin
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples costs
+	dh_installmenu --noscripts
+	dh_installinit --noscripts
+	dh_installman debian/pppstatus.1
+	dh_installcron
+	cp pppstatus.cfg debian/pppstatus/etc/pppstatus/
+	cp costs debian/pppstatus/etc/pppstatus/
+	cp debian/no_pppstatus_on_boot debian/pppstatus/etc/pppstatus/
+	cp debian/up debian/pppstatus/etc/ppp/ip-up.d/0pppstatus
+	cp debian/down debian/pppstatus/etc/ppp/ip-down.d/0pppstatus
+	chmod 755 debian/pppstatus/etc/ppp/ip-down.d/0pppstatus
+	chmod 755 debian/pppstatus/etc/ppp/ip-up.d/0pppstatus
+	dh_installchangelogs CHANGELOG
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- pppstatus-0.4.2.orig/debian/postinst
+++ pppstatus-0.4.2/debian/postinst
@@ -0,0 +1,20 @@
+#! /bin/sh
+# Postinst for pppstatus by John Hasler 2002.
+# You may treat this program as if it was in the public domain.
+
+if [ "$1" = "configure" ] && [ -x /usr/bin/update-menus ]; then update-menus ; fi
+if [ -x "/etc/init.d/pppstatus" ]; then
+	update-rc.d pppstatus defaults >/dev/null
+	if [ -x /usr/sbin/invoke-rc.d ]; then
+		invoke-rc.d pppstatus start
+	else
+		/etc/init.d/pppstatus start
+	fi
+fi
+
+# Remove obsolete pppstatus-clean
+rm -f /etc/init.d/pppstatus-clean
+update-rc.d pppstatus-clean remove >/dev/null || true
+
+
+exit 0
--- pppstatus-0.4.2.orig/debian/changelog
+++ pppstatus-0.4.2/debian/changelog
@@ -0,0 +1,207 @@
+pppstatus (0.4.2-10) unstable; urgency=low
+
+  * Added code to postinst to remove obsolete pppstatus-clean.
+    Closes: #454682: pppstatus -- Doesn't purge all files after piuparts 
+    Install+Upgrade+Purge test
+  
+  * Changed usleep(10L) to usleep(10000L) in pppstatus.c.
+    Closes: #436104: pppstatus: eats too much CPU under kernel 2.6.21 
+
+  * Removed '-s' option from install command in debian/rules.
+    Closes: #437787: pppstatus: not handling nostrip build option (policy 10.1)
+
+  * Fixed menu.
+  
+  * opt_analiser() and get_opt() were returning pointers to arrays.  Fixed.
+    Closes: #332631: pppstatus crashes with segfault
+  
+  * Removed spurious misuse of '==' at line 1661 in pppstatus,c
+  
+  * Changed connect_time and current_time from 'unsigned long' to 'time_t'
+    in pppstatus.h.
+  
+  * Removed spurious usr/sbin.
+  
+ -- John Hasler <jhasler@debian.org>  Fri, 14 Dec 2007 21:25:03 -0600
+
+pppstatus (0.4.2-9) unstable; urgency=low
+
+  * Fixed get_ppp_stats() to handle failed ioctl().
+  
+  * Fixed the daemon code in main() near line 1885 to open the 
+    terminal with O_NOCTTY.  Using freopen() results in the 
+    console becoming a controlling terminal.
+  
+  Closes: #320517 Pressing Control+PrintScreen locks up pppstatus
+  
+  * Fixed typo in man page. 
+  Closes: #301919 'man pppstatus' typo: "tariffes"
+  
+  * Applied patch.
+  Closes: #319282 typos in display / logfile
+
+  * Removed pppstatus-clean init file, changed prerm to remove runfiles.
+  Closes: #317717 pppstatus: don't cleanup /var/run
+  
+  * Applied patch from "Mario 'BitKoenig' Holbe" <Mario.Holbe@TU-Ilmenau.DE>
+  Closes: #307162 pppstatus: please support more speed steps
+  
+ -- John Hasler <jhasler@debian.org>  Fri,  4 May 2007 17:06:43 -0500
+
+pppstatus (0.4.2-8) unstable; urgency=low
+
+  * Added code to install signal_hup signal handler (reloads on HUP)
+    only when in daemon mode.
+    Closes: #278755 pppstatus fails to die on lost terminal.
+
+  * Added break at line 1816 to stop doubling of usage message.
+  
+  * Fixed man page to mention that HUP causes the config file to
+    be reread in daemon mode.
+  
+ -- John Hasler <jhasler@debian.org>  Fri, 10 Dec 2004 18:59:47 -0600
+
+pppstatus (0.4.2-7) unstable; urgency=low
+
+  * Replaced sprintf() with snprintf(), strcpy() with strncpy(), etc.
+  * Improved comments.
+  
+  * Moved flag files to /var/run/.
+    Changed PPP_UP_PATH from /var/lib/ to /var/run/.
+    Closes: #187845 Put flag files in /var/run, not /var/lib
+  
+  * Added a line to is_online() to blank the "Stalled" message
+    when offline.
+    Closes: #208758 pppstatus reports modem hang up as "Stalled"
+  
+  * Re-wrote ip_address() to handle error return from ioctl()
+    properly.  It worked, but only by accident.
+  
+ -- John Hasler <john@dhh.gt.org>  Sun, 1 Aug 2004 21:00:00 +0500
+
+pppstatus (0.4.2-6) unstable; urgency=low
+
+  * Closes: #177212 Default log directory not included in package.
+    Added /var/log/pppstatus to debian/dirs.
+  * Closes: #109841 pppstatus should have a redraw screen keystroke
+    This was fixed a long time ago.
+  * Added 'r' and 'q' commands to man page.
+
+ -- John Hasler <john@dhh.gt.org>  Sat, 1 Feb 2003 13:00:00 +0600
+	
+pppstatus (0.4.2-5) unstable; urgency=low
+
+  * Added log rotation script.
+  * Added handler to dump log on SIGINT and SIGTERM.
+  * Added handler to read config files on SIGHUP.
+  * Added code to stat /var/lib/pppX-up in is_online() and added ip-up.d
+    and ip-down.d scripts to create and destroy that file as ppp goes
+    up and down.  This allows pppstatus to work properly with demand
+    dialing.
+  * Applied patch from Craig Ringer to add support for 512k/128k ADSL.
+  * Closes: #163089 pppstatus: add support for 512k/128k ADSL
+  * Fixed Makefile so pppstatus.o depends on pppstatus.h. 
+
+ -- John Hasler <john@dhh.gt.org>  Sat, 4 Jan 2003 10:00:00 +0600
+
+pppstatus (0.4.2-4) unstable; urgency=low
+
+  * Edited main() and load_options() so that pppstatus will follow
+    the Unix convention of reading a config file from /etc/pppstatus
+    first and from ~/.pppstatus second.  ~/.pppstatus is not read if
+    the user is root.  The program no longer exits if the config
+    files cannot be read.
+  * Closes: #151885 pppstatus does not start automaticly after sysvinit update
+  * dirc() is now only called when the user is not root and does not
+    exit on failure.
+  * Added the constants GLOBALLOGDIR and GLOBALCOSTDIR (both set to 
+    /var/log), and the global variables logdir and costdir.  Edited 
+    main() and various functions to use them.  If the user is root 
+    logs now go in GLOBALLOGDIR and costs go in GLOBALCOSTDIR.  
+    Otherwise they go in ~/.pppstatus as usual.  'costs' file for root 
+    is in /etc/pppstatus.  'costs' file for ordinary users goes in 
+    ~/.pppstatus.
+  * Added a '-d <console>' option to run pppstatus as a daemon displaying
+    on the specified console.  Added code to support that, including
+    pidfile code and signal handlers.  Wrote an init.d script to start
+    pppstatus as a daemon in the absence of the file 
+    /etc/pppstatus/no_pppstatus_on_boot.  This eliminates the need for
+    runonboot.
+  * Re-wrote man page to reflect the above changes.
+  * I can't reproduce this on 0.4.2-4 with libc6 2.3.1-5 and 
+    libncurses5 5.3.20021109-1.  I think it was a curses problem.
+  * Closes: #170062 pppstatus not working after some upgrades
+	
+ -- John Hasler <john@dhh.gt.org>  Tue, 3 Dec 2002 18:00:00 +0600
+	
+pppstatus (0.4.2-2) unstable; urgency=low
+  
+  * Added test for check at line 1555 so that the 'r' command won't
+    cause a crash when email checking is not enabled in config file.
+  * Moved config file out of /var/log.
+  * Closes: #120170
+
+ -- John Hasler <jhasler@debian.org>  Sun, 2 Dec 2001 12:20:00 +0500
+
+pppstatus (0.4.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+  * Commented out 'printf("\e(U"); /* Thanks kspoon */' and arranged to
+    pass hline() ACS_BLOCK instead of 219.
+  * Closes: #105671 
+
+ -- John Hasler <jhasler@debian.org>  Wed, 8 Aug 2001 21:45:00 +0500
+
+pppstatus (0.4.1-5) unstable; urgency=low
+
+  * New maintainer.
+
+ -- John Hasler <jhasler@debian.org>  Sat, 9 Jun 2001 22:45:00 +0500
+
+pppstatus (0.4.1-4) unstable; urgency=low
+
+  * Updated the manpage with improvements kindly contributed by Carlos
+    Valdivia Yague.
+  * Corrected a typo in README.costs (tarifes replaced by tariffes) that
+    was pointed out by Carlos as well.
+  * Added a hint in README.Debian concerning the reset of the console
+    after terminating pppstatus; closes: #95646 
+
+ -- Dr. Guenter Bechly <gbechly@debian.org>  Sat, 28 Apr 2001 23:25:39 +0200
+
+pppstatus (0.4.1-3) unstable; urgency=low
+
+  * Added libncurses5-dev to Build-Depends; closes: #92772 
+
+ -- Dr. Guenter Bechly <gbechly@debian.org>  Tue,  3 Apr 2001 21:17:32 +0200
+
+pppstatus (0.4.1-2) unstable; urgency=low
+
+  * Corrected typo in copyright file; closes: #88759
+
+ -- Dr. Guenter Bechly <gbechly@debian.org>  Mon, 26 Mar 2001 16:09:11 +0200
+
+pppstatus (0.4.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Dr. Guenter Bechly <gbechly@debian.org>  Thu,  1 Mar 2001 18:50:48 +0100
+
+pppstatus (0.4.0-2) unstable; urgency=low
+
+  * Applied a patch by Paul Slootman which is included as patch.diff and
+    which was also forwarded upstream; closes: #86717
+
+ -- Dr. Guenter Bechly <gbechly@debian.org>  Fri, 23 Feb 2001 16:56:12 +0100
+
+pppstatus (0.4.0-1) unstable; urgency=low
+
+  * Initial Release (this package was orinally ITPed by Christian Surchi,
+    but has been taken over by me after negotiation with him).
+  * Wrote a manpage
+  * Modified Makefile.
+
+ -- Dr. Guenter Bechly <gbechly@debian.org>  Sat, 17 Feb 2001 17:29:27 +0100
+
+
--- pppstatus-0.4.2.orig/debian/README.Debian
+++ pppstatus-0.4.2/debian/README.Debian
@@ -0,0 +1,32 @@
+pppstatus for Debian
+--------------------
+
+I have made quite a few changes to pppstatus.  It now has normal
+config files in the normal places, catches signals and cleans up,
+and can be made to run as a daemon in the normal Unix fashion.
+I have removed runonboot (and the need for it).  From the changelog:
+
+  * Edited main() and load_options() so that pppstatus will follow
+    the Unix convention of reading a config file from /etc/pppstatus
+    first and from ~/.pppstatus second.  ~/.pppstatus is not read if
+    the user is root.  The program no longer exits if the config
+    files cannot be read.
+  * dirc() is now only called when the user is not root and does not
+    exit on failure.
+  * Added the constants GLOBALLOGDIR and GLOBALCOSTDIR (both set to 
+    /var/log), and the global variables logdir and costdir.  Edited 
+    main() and various functions to use them.  If the user is root 
+    logs now go in GLOBALLOGDIR and costs go in GLOBALCOSTDIR.  
+    Otherwise they go in ~/.pppstatus as usual.  'costs' file for root 
+    is in /etc/pppstatus.  'costs' file for ordinary users goes in 
+    ~/.pppstatus.
+  * Added a '-d <console>' option to run pppstatus as a daemon displaying
+    on the specified console.  Added code to support that, including
+    pidfile code and signal handlers.  Wrote an init.d script to start
+    pppstatus as a daemon in the absence of the file 
+    /etc/pppstatus/no_pppstatus_on_boot.  This eliminates the need for
+    runonboot.
+  * Re-wrote man page to reflect the above changes.
+
+
+-- John Hasler Thu Nov 28 19:59:24 CST 2002
--- pppstatus-0.4.2.orig/debian/copyright
+++ pppstatus-0.4.2/debian/copyright
@@ -0,0 +1,17 @@
+This package was debianized by Dr. Guenter Bechly <gbechly@debian.org> on
+Sat, 17 Feb 2001 17:29:27 +0100.
+Current Debian maintainer is John Hasler <jhasler@debian.org>
+
+It was downloaded from http://pppstatus.sourceforge.net/
+
+Upstream Author: Gabriel Montenegro <johnpetrucci@users.sourceforge.net>
+
+Copyright (c) 1999-2000 by Gabriel Montenegron, 2001 Dr. Guenter Bechly,
+              2001-2004 John G. Hasler
+
+License: GPL
+
+You are free to distribute this software under the terms of
+the GNU General Public Licence.
+On Debian systems, the complete text of the GNU General Public
+Licence can be found in /usr/share/common-licenses/GPL file.
--- pppstatus-0.4.2.orig/debian/pppstatus.init
+++ pppstatus-0.4.2/debian/pppstatus.init
@@ -0,0 +1,59 @@
+#!/bin/sh
+#
+#   /etc/init.d/pppstatus: start or stop pppstatus.
+#
+# If you want pppstatus started on boot time
+# rename the /etc/pppstatus/no_pppstatus_on_boot file to
+# /etc/ppp/pppstatus_on_boot and change 12 below to
+# the tty you want pppstatus to run on.
+
+### BEGIN INIT INFO
+# Provides:          pppstatus
+# Required-Start:    $syslog
+# Required-Stop:     $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: console-based PPP status monitor
+# Description:       PPPstatus is a console-based utility for displaying the
+#                    status of a PPP link, including connection verification,
+#                    connecting time, costs calculation, top speed, e-mail
+#                    check, ip address, graphical statistics, TX and RX leds,
+#                    interface selection, and more. It even supports xDSL
+#                    with pppoe.
+#     
+### END INIT INFO
+
+
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/pppstatus
+NAME=pppstatus
+TTY=12
+
+test -x /usr/bin/pppstatus -a -f /etc/pppstatus/pppstatus_on_boot || exit 0
+
+case "$1" in
+    start)
+        echo -n "Starting up $NAME "
+        start-stop-daemon --start --quiet --pidfile /var/run/$NAME.$TTY --exec $DAEMON -- -d $TTY
+        echo "."
+        ;;
+    stop)
+        echo -n "Shutting down $NAME "
+        start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.$TTY --exec $DAEMON
+        echo "."
+        ;;
+    restart|force-reload)
+        echo -n "Restarting $NAME "
+        start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.$TTY --exec $DAEMON
+        sleep 1
+        start-stop-daemon --start --quiet --pidfile /var/run/$NAME.$TTY --exec $DAEMON -- -d $TTY
+        echo "."
+        ;;
+    *)
+        echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}"
+        exit 1
+        ;;
+esac
+
+exit 0
--- pppstatus-0.4.2.orig/debian/TODO
+++ pppstatus-0.4.2/debian/TODO
@@ -0,0 +1,3 @@
+* Multiple ISPs
+
+* Demand dialing
--- pppstatus-0.4.2.orig/debian/no_pppstatus_on_boot
+++ pppstatus-0.4.2/debian/no_pppstatus_on_boot
@@ -0,0 +1,2 @@
+Rename this file pppstatus_on_boot in order to have pppstatus start up on
+boot.  Edit /etc/init.d/pppstatus to set the console for it to run on.
--- pppstatus-0.4.2.orig/debian/pppstatus_on_boot
+++ pppstatus-0.4.2/debian/pppstatus_on_boot
@@ -0,0 +1,2 @@
+Rename this file pppstatus_on_boot in order to have pppstatus start up on
+boot.  Edit /etc/init.d/pppstatus to set the console for it to run on.
--- pppstatus-0.4.2.orig/debian/pppstatus.cron.monthly
+++ pppstatus-0.4.2/debian/pppstatus.cron.monthly
@@ -0,0 +1,19 @@
+#!/bin/sh
+# Log rotation script for pppstatus John Hasler <jhasler@debian.org>
+# You may treat this script as if it were in the public domain.
+
+set -e
+
+[ -d /var/log/pppstatus/. ] || exit 0
+[ -x /usr/bin/pppstatus ] || exit 0
+umask 022
+cd /var/log/pppstatus
+[ "`ls -1A *.log 2>/dev/null`" ] || exit 0
+for FILE in *.log
+	do
+  		savelog -c 7 $FILE > /dev/null
+done
+# [ -x /etc/init.d/pppstatus ] || exit 0
+# /etc/init.d/pppstatus restart
+
+exit 0
