~vibhavp/ubuntu/raring/dahdi-tools/merge-from-debian

« back to all changes in this revision

Viewing changes to dahdi.init

  • Committer: Vibhav Pant
  • Date: 2012-12-26 17:23:16 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: vibhavp@gmail.com-20121226172316-o2jojsfcnr0aqrme
* Merge from Debian unstable. Remaining changes:
  - Bug Fix: If linux-headers are not installed, don't block, and print
    information for the user.
  - added debian/dahdi.postinst
  - added --error-handler=init_failed to debian/rules
  - debian/control: Added gawk as dependency for dkms build (LP: #493304)
  - 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 

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# Should-Stop:     $network $syslog
17
17
# Default-Start:   2 3 4 5
18
18
# Default-Stop:    0 1 6
 
19
# Short-Description: DAHDI kernel modules
19
20
# Description:     dahdi - load and configure DAHDI modules
20
21
### END INIT INFO
21
22
 
39
40
 
40
41
# A list of modules to unload when stopping.
41
42
# All of their dependencies will be unloaded as well.
42
 
DAHDI_UNLOAD_MODULES="dahdi echo"
 
43
DAHDI_UNLOAD_MODULES="dahdi"
43
44
 
44
45
#
45
46
# Determine which kind of configuration we're using
258
259
 
259
260
        xpp_startup
260
261
 
261
 
        if [ ! -e /proc/dahdi/1 ]; then
262
 
                echo "No hardware timing source found in /proc/dahdi, loading dahdi_dummy"
263
 
                modprobe dahdi_dummy 2> /dev/null
264
 
        fi
265
 
 
266
262
        if [ $system = debian ]; then
267
263
            echo -n "Running dahdi_cfg: "
268
264
            $DAHDI_CFG_CMD 2> /dev/null && echo -n "done"