debian/0000755000000000000000000000000011543371475007200 5ustar debian/docs0000644000000000000000000000000711543366425010047 0ustar README debian/control0000644000000000000000000000214311543366425010602 0ustar Source: martian-modem Section: non-free/net Priority: optional Maintainer: Ulises Vitulli Build-Depends: debhelper (>= 6.0.7~), bzip2 Standards-Version: 3.9.1 Homepage: http://phep2.technion.ac.il/linmodems/packages/ltmodem/kernel-2.6/martian Package: martian-modem Architecture: i386 Depends: ${shlibs:Depends}, ${misc:Depends} Description: ltmodem alternative driver providing support for Agere WinModem Martian is software to serve the Agere Systems PCI WinModem under Linux. These are modems built on DSP 164x (Mars) series and major IBM ThinkPad A20 and many T20 series . Project is established in the course of Linmodems group helping efforts Package: martian-modem-source Architecture: i386 Depends: ${misc:Depends}, debhelper, make, bzip2 Recommends: martian-modem, module-assistant Description: Source for the martian-modem driver This package provides the source code for the martian-modem kernel module . Martian is software to serve the Agere Systems PCI WinModem under Linux. These are modems built on DSP 164x (Mars) series and major IBM ThinkPad A20 and many T20 series debian/rules0000755000000000000000000001221611543366520010255 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif # The short upstream name, used for the module source directory sname:=martian-modem # some default definitions, important! # # Name of the source package psource:=$(sname)-source PKGMODULE:=martian-modem-source PKG:=martian-modem ### KERNEL SETUP ### Setup the stuff needed for making kernel module packages ### taken from /usr/share/kernel-package/sample.module.rules # modifieable for experiments or debugging m-a MA_DIR ?= /usr/share/modass # load generic variable handling -include $(MA_DIR)/include/generic.make # load default rules, including kdist, kdist_image, ... -include $(MA_DIR)/include/common-rules.make # module assistant calculates all needed things for us and sets # following variables: # KSRC (kernel source directory), KVERS (kernel version string), KDREV # (revision of the Debian kernel-image package), CC (the correct # compiler), VERSION (the final package version string), PKGNAME (full # package name with KVERS included), DEB_DESTDIR (path to store DEBs) # The kdist_config target is called by make-kpkg modules_config and # by kdist* rules by dependency. It should configure the module so it is # ready for compilation (mostly useful for calling configure). # prep-deb-files from module-assistant creates the neccessary debian/ files kdist_config: prep-deb-files # the kdist_clean target is called by make-kpkg modules_clean and from # kdist* rules. It is responsible for cleaning up any changes that have # been made by the other kdist_commands (except for the .deb files created) kdist_clean: # dh_testroot rm -f build-arch-stamp build-indep-stamp configure-stamp # Cleaning kernel module building dir $(MAKE) -C source clean configure: configure-stamp configure-stamp: dh_testdir touch configure-stamp build-arch: configure-stamp build-arch-stamp build-arch-stamp: dh_testdir touch $@ k = $(shell echo $(KVERS) | grep -q ^2.6 && echo k) # the binary-modules rule is invoked by module-assistant while processing the # kdist* targets. It is called by module-assistant or make-kpkg and *not* # during a normal build binary-modules: dh_testroot dh_clean -k dh_installdirs lib/modules/$(KVERS)/extra # Build the module $(MAKE) -C source KERNEL_DIR=$(KSRC) KVERS=$(KVERS) # Install the module dh_install source/martian_dev.$ko lib/modules/$(KVERS)/extra # Building package stuff dh_installdocs debian/copyright README Concept dh_installchangelogs ChangeLog dh_compress dh_fixperms dh_installdeb dh_gencontrol -- -v$(VERSION) dh_md5sums dh_builddeb --destdir=$(CURDIR) build-indep: configure-stamp build-indep-stamp build-indep-stamp: dh_testdir touch $@ build: build-arch build-indep # Userspace tool building # $(MAKE) -C modem clean: #dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp configure-stamp # Cleaning userspace util $(MAKE) -C modem clean dh_clean #install: DH_OPTIONS= install: build dh_testdir dh_testroot # Creating kernel module source container # dh_installdirs -p$(PKGMODULE) -i usr/src/modules/$(sname)/debian usr/src/modules/$(sname)/source dh_link -s -p$(PKGMODULE) ../packages/default.sh usr/share/modass/overrides/$(PKGMODULE) # Copy only the driver source to the proper location dh_install -p$(PKGMODULE) *.[ch] usr/src/modules/$(sname)/source # Copy the needed debian/ pieces to the proper location dh_install -p$(PKGMODULE) ChangeLog README Concept usr/src/modules/$(sname) dh_install -p$(PKGMODULE) debian/*modules.in* usr/src/modules/$(sname)/debian dh_install -p$(PKGMODULE) debian/*_KVERS_* debian/rules debian/changelog debian/copyright \ debian/compat usr/src/modules/$(sname)/debian/ # Changing original martian.h path from upstream dh_install -p$(PKGMODULE) kmodule/* usr/src/modules/$(sname)/source # Due the lack of privative software and terms under "Redistribution and Usage" specified in Copyright section 2.3.2 # no modifications can be made over any files for distribution (read Copyright) dh_install -p$(PKGMODULE) martian.h usr/src/modules/$(sname) # Have to set permissions now before tar'ing chown -R root.src debian/$(psource)/usr/src/modules cd debian/$(PKGMODULE)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules; cd - # Creating userspace utils stuff # dh_installdirs -p$(PKG) /usr/sbin $(MAKE) -C modem all dh_install -p$(PKG) modem/martian_modem usr/sbin # Build architecture-independent files here. # Pass -i to all debhelper commands in this target to reduce clutter. binary-indep: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples scripts/wv.conf dh_installinit -p$(PKG) dh_installman -p$(PKG) debian/martian_modem.8 dh_install dh_lintian -p$(PKG) dh_link dh_compress dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep .PHONY: build clean binary-indep binary install configure binary-modules kdist kdist_configure kdist_image kdist_clean debian/martian-modem.default0000644000000000000000000000173311543366655013310 0ustar # Defaults for martian-modem initscript # sourced by /etc/init.d/martian-modem # installed at /etc/default/martian-modem by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon # ### # # Device that will martian-modem daemon create to act as modem device. # Default is /dev/ttySM0 # #DEVICE=/dev/ttySM0 # # User and Group that will have access to the modem device. # Do not confuse with daemon user/group (this daemon needs to be run as root) USER=nobody GROUP=dialout # Pseudo device permissions mode. # Do leave this as it is except you have changed GROUP parameter below, # otherwise you'll not be able to dial out under a non-root user. MODE=0660 # LOGGING NOTE: # If you don't choose to USE_SYSLOG, it would log automatically # into it's own logfile under $LOGFILE. # Default and recommended choise is to log using syslog facilities. # USE_SYSLOG=Y LOGFILE=/var/log/martian-modem.log # Default=1 (1-5) DEBUG_LEVEL=1 debian/README.source0000644000000000000000000000071111543367534011357 0ustar martian-modem patches ===================== There are a few patches to handle builds on newer kernels, multicores, a better energy approach, etc. Most of them haven't yet been reviewed on upstream side, therefore, I include this very trivial ones for applying to the new linux scheduling architecture and wait for more complex ones to be reviewed or accepted upstream-side. -- Ulises Vitulli Wed, 13 Jan 2010 13:29:58 -0300 debian/martian-modem-modules-_KVERS_.postinst.modules.in0000644000000000000000000000216311543366425020450 0ustar #!/bin/sh # postinst script for modules package built from martian-modem 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) if [ -e /boot/System.map-_KVERS_ ]; then depmod -a -F /boot/System.map-_KVERS_ _KVERS_ || true fi modprobe martian_dev 2>/dev/null || true ;; 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 debian/changelog0000644000000000000000000000371511543367345011061 0ustar martian-modem (20080625-2) unstable; urgency=low * The 'Thats-was-niceeeeee' dupload. * Use a hidden daemon's feature to allow custom mode, enabling regular non-root users to dial-out through dialout group (Closes: #613773). * Depends on debhelper, fixes a build-dep issue on building the custom kernel module (Closes: #613896). * Switch package format to 3.0 (quilt). * Cleaning redundant build-deps (since we use quilt source format). * Update Standard-version to 3.9.1 (no changes needed). -- Ulises Vitulli Sat, 26 Mar 2011 04:10:25 -0300 martian-modem (20080625-1) unstable; urgency=low * New upstream release (Closes: #521749). * Patch for 2.6.32 linux scheduler (Closes: #563508). - debian/patches/include_2.6.32-scheduler.patch - debian/README.source: Created. - debian/control: Adding dependency on quilt. * Minor pkg fixes: - debian/martian_modem.8: Fixing spelling errors (Closes: #563529). - Updated Package to apply to policy 3.8.3. - debian/control: Added misc:Depends. - debian/compat: Pop'd to 6 as we ask for newer debhelper. - debian/copyright: fixed non-utf8 symbol. * update-devfsd is no longer necessary (Closes: #561689). * debian/martian-modem.init.d: Consider the possibility that var/run dir could be a tmpfs-like. -- Ulises Vitulli Wed, 13 Jan 2010 13:29:58 -0300 martian-modem (20080617-1) unstable; urgency=low * New maintainer (Closes: #481430). * New upstream release (Closes: #484494, #486003). -- Ulises Vitulli Tue, 17 Jun 2008 17:27:32 -0300 martian-modem (20071011-1) unstable; urgency=low * New upstream release (Closes: #448340, #473113, #473115) -- Mariano (Dererk) Velez Mon, 31 Mar 2008 01:29:01 -0300 martian-modem (20061203-1) unstable; urgency=low * Initial release (Closes: #435745) -- Mariano (Dererk) Velez Tue, 31 Jul 2007 23:50:30 -0300 debian/control.modules.in0000644000000000000000000000200711543366425012655 0ustar Source: martian-modem Section: non-free/net Priority: optional Maintainer: Ulises Vitulli Build-Depends: debhelper (>= 5) Standards-Version: 3.8.3 Homepage: http://phep2.technion.ac.il/linmodems/packages/ltmodem/kernel-2.6/martian Package: martian-modem-modules-_KVERS_ Architecture: i386 Provides: martian-modem-modules Description: martian-modem modules for Linux (kernel _KVERS_) This package provides the source code for the martian-modem kernel module . Martian is software to serve the Agere Systems PCI WinModem under LINUX. These are modems built on DSP 164x (Mars) series and major IBM ThinkPad A20 and many T20 series . If you have compiled your own kernel, you will most likely need to build your own martian-modem-modules. The martian-modem-source package has been provided for use with the Debian's module-assistant or kernel-package utilities to produce a version of martian-modem-modules for your kernel. . Project is established in the course of Linmodems group helping efforts debian/compat0000644000000000000000000000000211543366425010375 0ustar 6 debian/README.Debian0000644000000000000000000000343411543371475011245 0ustar martian-modem for Debian ------------------------ The Debian martian-modem support consists in two packages, 1) martian-modem-source, a linux kernel module. This package provides a MARS (aka, Martian Modem) kernel module for the linux kernel, prepared to support a debian-friendly compilation way, known as 'module-assistant'. 2) martian-modem, a control daemon. This package provides a MARS (aka, Martian Modem) control daemon, fully supporting LSB and Sys-V (also sysv-ng) init scripts, logging, non-root users dialing properties, between other features. The martian-modem-source package can be used in several ways: - The module-assistant way [ RECOMMENDED ] Using module-assistant(8) ncurses-based GUI, the command-line tool for handling module-source packages that have been prepared for the Debian distribution. It helps users to build and install module package(s) easily. By executing this, you'll build and install the kernel module: # m-a a-i martian-modem For a quick reference about how to use this tool, check "auto-install" at COMMANDS section on module-assistant(8) man page. - Using the make-kpkg(1) command provided by the kernel-package Debian package. This will produce a corresponding martian-modem-modules package for the Debian kernel-image package that you are using. See the "modules_image" section of the make-kpkg(1) man page. - Changing to the /usr/src/modules/martian-modem/ directory and building as the README file instructs using "make; make install". This will build and install a module specific to the system you are building on and is not under control of the packaging system (Not recommended). -- Ulises Vitulli Sat, 26 Mar 2011 04:10:25 -0300 debian/martian_modem.80000644000000000000000000000206311543366425012105 0ustar .\" May be distributed under the GNU General Public License .\" Copyright 2007 Dererk .\" .\" Text automatically generated by txt2man .TH martian\-modem 8 "August 26, 2007" "Debian Project" "Debian GNU/Linux manual" .SH NAME martian-modem \- userspace utility for DSP 164x Agere Mars linmodem. .SH DESCRIPTION martian\-modem is the userspace utility that creates all the necessary devices for applications to connect with the modem. .PP It has been daemonized for Debian by the maintainer for practical reasons. Even though this daemon requires multiple configuration parameters, defaults *has everything* set for most users requirements. .PP You can find these settings in '/etc/defaults/martian\-modem'. .TP Do not modify any, unless you are experiencing problems or you know what you are doing. .PP For more information, check '/usr/share/doc/martian\-modem'. .SH FILES .TP .I /etc/defaults/martian\-modem, /etc/init.d/martian\-modem .SH AUTHOR Dererk This manpage was written by Dererk for the Debian project. debian/gen.udev.rules.sh0000644000000000000000000000100211543366425012370 0ustar #!/bin/bash ## Xircom device #ATTRS{idVendor}=="115d", ATTRS{idProduct}=="0x45f", MODE="0660", GROUP="dialout" egrep -o 'PCI_VENDOR_ID_(ATT|XIRCOM), ([0-9]?[a-f]?)x([0-9]?[a-f]?)+' kmodule/martian_ids.c | awk 'BEGIN {print "##\n#Automagic udev rules file for modems MARS (aka, Martian Modem)\n"} { if ($1=="PCI_VENDOR_ID_ATT,") { Vendor="AT&T";id="11c1" } else { Vendor="Xircom";id="115d"} ; print "# "Vendor" device \nATTRS{idVendor}==\""id"\", ATTRS{idProduct}==\""$2"\", MODE=\"0660\", GROUP=\"dialout\""}' debian/source/0000755000000000000000000000000011543366425010477 5ustar debian/source/format0000644000000000000000000000001411543366425011705 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011543366425010626 5ustar debian/patches/include_2.6.32-scheduler.patch0000644000000000000000000000103011543366425016050 0ustar Author: Geoff Simmons Description: This trivial patch allows martian-modem kernelspace part to build against 2.6.32 and its new scheduler --- martian-full-20080625.orig/kmodule/martian.c 2010-01-22 06:08:13.397981051 -0300 +++ martian-full-20080625/kmodule/martian.c 2010-01-22 06:15:08.076988441 -0300 @@ -38,6 +38,10 @@ #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32) +#include +#endif + #include "kmartian.h" #include "../martian.h" #include "marsio.h" debian/patches/series0000644000000000000000000000003711543366425012043 0ustar include_2.6.32-scheduler.patch debian/copyright0000644000000000000000000001470311543366425011137 0ustar This package was debianized by Dererk on Tue, 31 Jul 2007 23:50:30 -0300. It was downloaded from http://martian.barrelsoutofbond.org/index.html Upstream Author: Alexei Chentsov Copyrights: Copyrights and Licenses are splited into two pieces. 1. User mode application martian_modem (here distributed under martian-modem package) contains and makes use of Agere Systems WinModem licensed Software. ltmdmobj.o is the sole property of Agere Systems (see ASWMLICENCE). Copyright © Agere Systems 2. All parts of martian_modem software other than ltmdmobj.o can be redistributed and used under the terms of the GNU Lesser General Public License. Copyright © Alexei Chentsov 2007 License: ASWMLICENCE YOU SHOULD READ THE TERMS AND CONDITIONS OF THIS AGREEMENT BEFORE YOU DOWNLOAD AND USE THE AGERE SYSTEMS WINMODEM LICENSED SOFTWARE. ONCE YOU HAVE READ THIS LICENSE AGREEMENT AND AGREE TO ITS TERMS, YOU MAY DOWNLOAD AND USE THE AGERE SYSTEMS WINMODEM LICENSED SOFTWARE. DOWNLOADING OR USING THE AGERE SYSTEMS WINMODEM LICENSED SOFTWARE SHOWS YOUR ACCEPTANCE OF THE TERMS OF THIS LICENSE AGREEMENT. The terms and conditions of this Agreement will apply to the Agere Systems WinModem Software (hereafter "Software") supplied under this Agreement and any derivatives obtained therefrom, including any copy. The term Software includes programs and related documentation supplied herewith. The following file is made available under the standard Linux license, a copy of which may be found at . serial26.c These additional files are not derived from any Linux open source content, and are subject to the following restrictions. ltmarsmodem.c linuxif.h ltmdmobj.o Makefile ltinst ltuninst README 1.0 TITLE AND LICENSE GRANT 1.1 The Software is copyrighted and/or contains proprietary information protected by law. All Software and all copies thereof are and will remain the sole property of Agere Systems or its suppliers. Agere Systems hereby grants you a non-exclusive right to use the Software, in whatever form recorded, which is furnished to you under or in contemplation of this Agreement, in an Agere Systems winmodem. Any other use of the Software or removal of the Software from a country in which use is licensed shall automatically terminate this license. 1.2 You agree to use your best efforts to see that any user of the Software licensed hereunder complies with the terms and conditions of this Agreement. 2.0 SOFTWARE USE 2.1 You are permitted to make copies of the Software provided that any such copy shall contain the same copyright notice and proprietary marking included on the original Software. 2.2 You agree not to merge or combine any portion of the Software with any other software, other than the Linux operating system, unless expressly permitted by the laws of the jurisdiction where you are located. Any portion of the Software merged or combined with the other software will continue to be the subject of the terms and conditions of this Agreement and you agree to reproduce on the merged or combined portion of the Software the copyright and other proprietary rights notices included in the original Software. 2.3 Redistribution and Usage Agere permits use and limited redistribution of this Licensed Software in source and binary forms, with or without modification, subject to the following terms and conditions, in addition to the terms mentioned in this agreement. 2.3.1 Agere Systems reserves the right not to allow a third party to reuse or redistribute the software, at its sole discretion. 2.3.2 User hereby agrees not to remove or alter any copyright, trademark, credits and other proprietary notices contained within or associated with the Licensed Software, and shall include all such unaltered copyright, trademark, credits and other proprietary notices on or in every copy of the Software. 2.3.3 Notwithstanding any other provisions in this Agreement to the contrary, any modifications or alterations made to the Licensed Software shall cause any warranties and intellectual property indemnifications to become null and void and of no further effect. 3.0 DISCLAIMER OF WARRANTY 3.1 You understand and acknowledge that the Software may contain errors, bugs or other defects. The Software is provided on AS-IS basis, without warranty of any kind. 3.2 Agere Systems has used reasonable efforts to minimize defects or errors in the Software. HOWEVER, YOU ASSUME THE RISK OF ANY AND ALL DAMAGE OR LOSS FROM USE OR INABILITY TO USE THE SOFTWARE. Specifically, but not in limitation of the foregoing disclaimers, Agere Systems does not warrant that the functions of the Software will meet your requirements or that the Software operation will be error-free or uninterrupted. 3.3 Agere Systems bears no responsibility for supplying assistance for fixing or for communicating known errors to you pertaining to the Software supplied hereunder. 3.4 YOU UNDERSTAND THAT AGERE SYSTEMS, ITS AFFILIATES, CONTRACTORS, SUPPLIERS, AND AGENTS MAKE NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIM ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 4.0 EXCLUSIVE REMEDIES AND LIMITATION OF LIABILITIES 4.1 Regardless of any other provisions of this Agreement, neither Agere Systems nor its affiliates, contractors, suppliers, or agents shall be liable for any indirect, incidental, or consequential damages (including lost profits) sustained or incurred in connection with the use, operation, or inability to use the Software or for damages due to causes beyond the reasonable control of Agere Systems, its affiliates, contractors, suppliers, and agents attributable to any service, products, or action of any other person. 4.2 This Agreement shall be construed in accordance with and governed by the laws of the State of New York. YOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT AND UNDERSTAND IT, AND THAT BY DOWNLOADING OR USING THE SOFTWARE, YOU AGREE TO BE BOUND BY ITS TERMS AND CONDITIONS. YOU FURTHER AGREE THAT THIS AGREEMENT IS THE COMPLETE AND EXCLUSIVE STATEMENT OF THE RIGHTS AND LIABILITIES OF THE PARTIES. THIS AGREEMENT SUPERCEDES ALL PRIOR ORAL AGREEMENTS, PROPOSALS OR UNDERSTANDINGS, AND ANY OTHER COMMUNICATIONS BETWEEN US RELATING TO THE SUBJECT MATTER OF THIS AGREEMENT. --- The Debian packaging is © 2007, Dererk and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. Agere Systems WinModem End User SOFTWARE LICENSE AGREEMENT debian/martian-modem.init.d0000644000000000000000000000454511543366615013051 0ustar #! /bin/bash # # This initscript was created by Dererk for martian-modem # # Start/stop the martian-modem daemon ### BEGIN INIT INFO # Provides: martian-modem # Required-Start: $syslog $remote_fs $time # Required-Stop: $syslog $remote_fs $time # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Userspace martian-modem session manager # Description: This daemon consists in the userspace part that controlles # the martian-modem sessions status. ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/martian_modem NAME=martian-modem DESC=martian-modem test -x $DAEMON || exit 0 . /lib/lsb/init-functions # Include martian-modem defaults if available if [ -f /etc/default/martian-modem ] ; then . /etc/default/martian-modem USE_LOG="--syslog" if [ $USE_SYSLOG = "N" ]; then USE_LOG="--log $LOGFILE" fi DAEMON_OPTS="$USE_LOG --daemon --user=$USER --group=$GROUP --mode=$MODE --debug=$DEBUG_LEVEL $DEVICE" else echo "ERROR: martian-modem configuration file MISSING!" exit 1 fi case "$1" in start) log_begin_msg "Starting $NAME daemon..." pid=`pidof $NAME` if [ -n "$pid" ] ; then log_begin_msg "Already running." log_end_msg 0 exit 0 fi if [ ! -d "/var/run/$NAME" ]; then mkdir -p /var/run/$NAME chown $USER:root /var/run/$NAME fi start-stop-daemon --start --oknodo --pidfile /var/run/$NAME/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS if ! pidof $DAEMON > /var/run/$NAME/$NAME.pid; then log_begin_msg "Oops, something went wront. CHECK SYSLOG!" exit 1 fi log_end_msg $? ;; stop) log_begin_msg "Stopping $NAME daemon..." start-stop-daemon --stop --oknodo --pidfile /var/run/$NAME/$NAME.pid --exec $DAEMON log_end_msg $? rm /var/run/$NAME/$NAME.pid >/dev/null 2>&1 ;; force-reload) $0 restart ;; restart) $0 stop $0 start ;; status) if start-stop-daemon --start --test --exec $DAEMON -- $DAEMON_OPTS >/dev/null 2>&1; then echo "$NAME is STOPPED!" && exit 1 else echo "$NAME is RUNNING using process id `cat /var/run/$NAME/$NAME.pid`." && exit 0 fi ;; *) log_success_msg "Usage: /etc/init.d/$NAME {start|stop|status|force-reload|restart}" exit 1 ;; esac exit 0 debian/martian-modem.lintian-overrides0000644000000000000000000000052011543366425015306 0ustar # Kernel part uses core state information. # Mapping whole running image into kernel space is not appropriate. So these data are relocated into common area. # Stripping it as a regular binary results into a broken communication with core state communication channel. martian-modem: unstripped-binary-or-object ./usr/sbin/martian_modem