summaryrefslogtreecommitdiff
path: root/dahdi.init
AgeCommit message (Collapse)Author
2011-03-16dahdi.init: LSB short descriptionTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9830 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-09-07dahdi.init: Remove reference to dahdi_dummy.Shaun Ruffell
Module 'dahdi_dummy.ko' is no longer needed for DAHDI to provide timing, therefore we can remove the explicit load of dahdi_dummy, which by default is aliased to dahdi.ko anyway. If you've edited the DAHDI Kbuild file in order to build dahdi_dummy explicitly, then you should add dahdi_dummy to /etc/dahdi/modules in order to load it, but this is not needed for normal operation. (issue #17959) Reported by: glen201 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9309 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-04-18Add proper dependencies to the 'stop' action as well.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8535 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-03-01dahdi.init: Add support for SuSE.Shaun Ruffell
The init script would fail on SuSE without this change, since it would look for the redhat init script functions. DAHDI-437. (closes issue #16761) Reported by: oej Patch by: jparker git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8194 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-07dahdi.init: allow specifying the module(s) to download.Tzafrir Cohen
At the 'stop' command, the dahdi init.d service unloads dahdi (and any module it depends in). With this change, the user will be able to specify the modules to unload, by setting DAHDI_UNLOAD_MODULES in init.conf. This allows: * Disabling module unloading altogether * Allowing the user to unload other modules as well, e.g. the 'echo' module of OSLEC, if you build it as part of DAHDI. Note that unless you explicitly set DAHDI_UNLOAD_MODULES, the script behaves exatly as before. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7997 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-06slightly simplify the new dahdi.initTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7497 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-06dahdi.init: Unload the dahdi_echocan modules last.Shaun Ruffell
If the echocan factory is associated with a channel, the reference on the echocan module will not be released until after the board driver is unloaded. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7494 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04Allow overriding DAHDI_CFG_CMD from the environmentTzafrir Cohen
Useful in some testing environments. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7461 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-10-21Fix XPP_HOTPLUG_DAHDI: logic; end of init.d scriptTzafrir Cohen
'Hotplug mode' was introduced in r7335. * The logic in the script was broken. - Negative logic is not such a grand idea to start with. * Interactive invocation of init.d ends when expected and not sooner. This change makes waitfor_xpds wait longer. Rather than waiting for all the Astribanks to load, it will now wait until the initialization of dahdi from the Astribanks hook script is run. This allows running e.g.: /etc/init.d/dahdi start; /etc/init.d/asterisk start It also means that 'astribank_is_starting' is actually used as a semaphore and not only as stamp file. As before, those changes have no effect if hotplug mode is not explicitly enabled (setting 'XPP_HOTPLUG_DAHDI=yes' in init.conf). git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7409 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-10-04Add XPP_HOTPLUG_DAHDI mode: cfg initiated mostly from hotplugTzafrir Cohen
If XPP_HOTPLUG_DAHDI=yes is set in /etc/dahdi/init.conf (which is not the default), the normal run of the 'start' operation of the dahdi init script will only be responsible for loading modules. The rest will be done (if there are indeed Astribanks on the system) by a second call to the init script once all of them have connected. The astribank_hook has also been mostly rewritten. Most of the functionality of twinstar_hook moved to it. The current twinstar_hook is a simple example script. XPP_HOTPLUG_DAHDI mode assumes that all Astribanks on the system are listed in /etc/dahdi/xpp_order (which can be generated using, e.g. 'dahdi_genconf xpporder') git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7335 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-10-04dahdi.init: move module loading to a separate functionTzafrir Cohen
Move the module loading parts of the dahdi init script to a seperate function - load_modules. To be used by a later commit. There is not functional change here (but the diff is confusing). git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7334 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-23Revert "dahdi.init: Define a default span configuration for digital cards."Shaun Ruffell
This reverts commit r6708. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6710 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-23dahdi.init: Define a default span configuration for digital cards.Shaun Ruffell
If there is a digital card in the system, and there is not a span configuration line in /etc/dahdi/system.conf, the init script will now create a temporary default one to use. On some installations, this will allow asterisk to start before dahdi is fully configured. This a temporary measure until DAHDI is always able to provide a timing source. (related to issue #13205) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6708 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-19dahdi.init: moved test for astribanks into waitfor_xpdsTzafrir Cohen
If the system starts with an Astribank with no firmware, the firmware loading may take a while and the Astribank only becomes ready some time after the DAHDI init script starts. This means that the test at the beginning of xpp_startup() in dahdi.init fails to find an Astribank, and the init script simply continues ignoring this. This changeset moves the testing inside the script waitfor_xpds. The script now: 1. Tests for an Astribank using dahdi_hardware and exists immediately if none found. 2. A loop (of maximum 10 seconds) waits for the first Astribank to be detected by the driver. 3. Waiting for the initialization of all the Astribanks to complete (The original waitfor_xpds) The support for the old procfs iinterface has been removed, as it has never been used with DAHDI. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6646 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-22make sure '/etc/init.d/dahdi stop' ends with a newlineTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6442 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-16dahdi.init: call xpp_sync a bit later.Tzafrir Cohen
xpp_sync needs to only be called after dahdi_cfg was run, because the application of system.conf may change the priority of a PRI module span (If it is a sync provider, "NT", priority is lower). Also some documentation-only changes for xpp_sync. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6167 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-05Fix a typo in shutting down dynamic spans in dahdi.initTzafrir Cohen
Fixes shutdown_dynamic() in the dahdi init.d script. Not enabling it by default just yet (the second half of the patch) until we get some further confirmation that such a shutdown is always good. (from issue #14603) Reported by: tamiel Patches: 20090304_dahdi.init.patch uploaded by tamiel (license 712) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6095 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-28Use the dahdihpec_enable tool instead of the zaphpec_enable.Shaun Ruffell
Issue: DAHDI-233 patch by: cmoye git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5886 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-25Whitespace changes only (nothing functional).Sean Bright
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5809 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-25Use the debian commands on Gentoo.Sean Bright
(closes issue #14277) Reported by: darren1713 Patches: dahdi.init.txt uploaded by darren1713 (license 116) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5808 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-12-11Drop the "redhat" action at the 'stop' case for now: Tzafrir Cohen
RHEL4's 'action' only works with programs and not with functions. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5514 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-19LSB init script comments.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5334 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-16xpp: userspace support for sysfx migration.Tzafrir Cohen
The userspace side of dahdi-linux r5097. * Perl modules default to using xpp sysfs but will fallback (with warning) to procfs interface. * An additional /usr/share/dahdi/waitfor_xpds to replace the line in the init.d script. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5099 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-09Return the appropriate values to indicate if the modules are loaded or not.Sean Bright
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5074 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-09Add a status command to the DAHDI init script.Sean Bright
(closes issue #13655) Reported by: jcollie Patches: 0001-Add-a-trivial-status-command-to-the-init-script.patch uploaded by jcollie (license 412) (Slight modification by me to update the usage text) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5072 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-09-25dahdi_init: Fix a typo in xpp initialization (Stephen Farrell)Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4984 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-09-16Remove the extra space printed after each line when a module is loaded.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4915 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-09-09Fix location of fxotuneJason Parker
(closes issue #13428) Reported by: eeman git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4882 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-28Simplify reading list of modules from /etc/dahdi/modules .Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4855 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-27remove some silly echo statement constructions in the init scriptKevin P. Fleming
clean up the modules.sample file to have proper lists of cards supported by each module and remove reference to dahdi_dummy since the init script takes care of loading that module git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4850 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-15Remove unused $MODULES from dahdi.init and init.conf.sampleTzafrir Cohen
(also minor README cleanups). git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4608 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-08Use system default method to show when modules are loaded. Shaun Ruffell
Still needs refactoring to have one function that works on different platforms. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4579 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-08- Renamed init.conf to init.conf.sampleShaun Ruffell
- Added /etc/dahdi/modules file that contains comments or the names of modules to load. - Removed the MODULES variable from /etc/dahdi/init.conf. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4578 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-07Add commented out module names in init.conf and update the init script toShaun Ruffell
report when the MODULES parameter is empty at dahdi start. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4564 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-07Change case on DAHDI.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4562 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-06dahdi.init fixes reported by mvanbaak.Tzafrir Cohen
Closes issue #12996 . git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4551 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-29* dahdi.init: cleanups.Tzafrir Cohen
* init.conf: example configuration for the init script. * dahdi.rules: udev rules (still not installed). * Makefile: simplify install of RCCONF . git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4483 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-19A slightly simplified version of zaptel.init as dahdi.init .Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4414 a0bf4364-ded3-4de4-8d8a-66a801d63aff