From 2ffc71217b46c8995985f852d6c62fdb92a6bf79 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 11 Nov 2006 19:27:10 +0100 Subject: [PATCH] * Update copyright file (adjusted address of fsfs). * Added manpage for sysdump. * sysdump: do not exit on error opening file(s) but print warning instead. --- debian/changelog | 4 ++++ debian/copyright | 15 ++++++++------- debian/rules | 2 +- sysdump | 2 +- sysdump.8 | 23 +++++++++++++++++++++++ 5 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 sysdump.8 diff --git a/debian/changelog b/debian/changelog index 43b4477..07821ff 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,10 @@ grml-hwinfo (0.3-2) unstable; urgency=low * Use "Architecture: all" in debian/control to support architectures not running on x86 as well. * Bumb Standard Version to 3.7.2 (no further changes). + * Update copyright file (adjusted address of fsfs). + * Added manpage for sysdump. + * sysdump: do not exit on error opening file(s) but print warning + instead. -- Michael Prokop Sat, 11 Nov 2006 19:12:39 +0100 diff --git a/debian/copyright b/debian/copyright index d159fb4..5336695 100644 --- a/debian/copyright +++ b/debian/copyright @@ -7,21 +7,22 @@ Copyright Holder: Michael Prokop License: - This software is copyright (c) 2004-2005 by Michael Prokop. + This software is copyright (c) 2003++ by Michael Prokop. - This package is free software; you can redistribute it and/or modify + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; version 2 dated June, 1991. + the Free Software Foundation; either version 2, or (at your option) + any later version. - This package is distributed in the hope that it will be useful, + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this package; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, + USA. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. diff --git a/debian/rules b/debian/rules index 37df8fc..4c452fb 100755 --- a/debian/rules +++ b/debian/rules @@ -43,7 +43,7 @@ binary-arch: build install dh_testroot dh_installchangelogs dh_installdocs - dh_installman grml-hwinfo.1 + dh_installman grml-hwinfo.1 sysdump.8 dh_link dh_strip dh_compress diff --git a/sysdump b/sysdump index 1fd3e0e..17c2b9f 100755 --- a/sysdump +++ b/sysdump @@ -62,7 +62,7 @@ sub dump_value($$) my $level = shift; my $file = shift; - open (FILE, "<$file") || die "can't open $file: $!"; + open (FILE, "<$file") || print "can't open $file: $!"; my $value; { local $/; diff --git a/sysdump.8 b/sysdump.8 new file mode 100644 index 0000000..4dceced --- /dev/null +++ b/sysdump.8 @@ -0,0 +1,23 @@ +.TH SYSDUMP 8 +.SH NAME +sysdump \- dump /sys to a textformat +.SH SYNOPSIS +.B sysdump +.SH DESCRIPTION +This manual page documents briefly the +.B sysdump +command. +.PP +\fBsysdump\fP is a perl script that tries to read all files in the +sys filesystem (known as the files behind /sys) and dumps the content +found in present files to stdout. The script is used inside grml-hwinfo. +.SH OPTIONS +sysdump does not support any options. +.SH SEE ALSO +.BR grml-hwinfo (1). +.br +.SH AUTHOR +sysdump was written by David Schmitt . +.PP +This manual page was written by Michael Prokop +for the grml project (but may be used by others). -- 2.1.4