~ubuntu-branches/ubuntu/saucy/dahdi-tools/saucy

« back to all changes in this revision

Viewing changes to debian/patches/init_unload_oslec

  • Committer: Bazaar Package Importer
  • Author(s): Jean-Michel Dault, Tzafrir Cohen
  • Date: 2010-02-16 13:44:09 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100216134409-4y4k26mgzyra537o
Tags: 1:2.2.1-0ubuntu1
* Merge from Debian pkg-voip.
  * Changes from Debian:
  - debian/control: Change Maintainer
  - debian/control: Removed Uploaders field.
  - debian/control: Removed Debian Vcs-Svn entry and replaced with
      ubuntu-voip Vcs-Bzr, to reflect divergence in packages.
  - debian/control: Package dahdi Depends on  dahdi-dkms | dahdi-source

* From Debian pkg-voip:
[ Tzafrir Cohen ]
* New upstream release (Closes: #536257, #564381).
* Patch 'bashism' dropped: merged upstream. 
* Patch xpp_no_extra_at dropped: merged upstream. 
* Add an example genconf_parameters.
* Compat level 7.
* Bump standars version to 3.8.3.0 (no change needed)
* Udev rules are now in dahdi-linux.
* Patches perl_fix_noserial, perl_fix_transportdir: Fixes for some
  minor perl issues.
* Add the missing ${misc:Depends}, as per lintian. 
* Patch astribank_allow_ignoreend: an extra missing patch from upstream. 
* Patches init_unload_modules and init_unload_oslec: also unload OSLEC
  when unloading all modules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Subject: also unload OSLEC (echo) on module unload
 
2
From: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
 
3
Forwarded: no
 
4
 
 
5
This patch sets the DAHDI init.d script to also unload 'echo' (OSLEC)
 
6
in the 'stop' target. This adds to the default of unloading dahdi and
 
7
all of its dependent modules.
 
8
 
 
9
The package dahdi-linux includes 'echo' and with the default settings,
 
10
will attempts load 'echo', that does not depend on dahdi, and hence
 
11
will not be unloaded by default. Thus upgrading to a newer version (of
 
12
a newer build) may break.
 
13
 
 
14
This change will not be commited upstream, as OSLEC is not used there.
 
15
 
 
16
--- a/dahdi.init
 
17
+++ b/dahdi.init
 
18
@@ -39,7 +39,7 @@ DAHDI_DEV_TIMEOUT=20
 
19
 
 
20
 # A list of modules to unload when stopping.
 
21
 # All of their dependencies will be unloaded as well.
 
22
-DAHDI_UNLOAD_MODULES="dahdi"
 
23
+DAHDI_UNLOAD_MODULES="dahdi echo"
 
24
 
 
25
 #
 
26
 # Determine which kind of configuration we're using